fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
2.3 KiB76 linesraw
1error[E0658]: custom attributes cannot be applied to modules
2  --> $DIR/attributes-on-modules-fail.rs:6:1
3   |
4LL | #[identity_attr]
5   | ^^^^^^^^^^^^^^^^
6   |
7   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
8   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
9
10error: `derive` may only be applied to structs, enums and unions
11  --> $DIR/attributes-on-modules-fail.rs:16:1
12   |
13LL | #[derive(Copy)]
14   | ^^^^^^^^^^^^^^^
15
16error[E0658]: non-inline modules in proc macro input are unstable
17  --> $DIR/attributes-on-modules-fail.rs:20:1
18   |
19LL | mod module;
20   | ^^^^^^^^^^^
21   |
22   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
23   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
24
25error[E0658]: non-inline modules in proc macro input are unstable
26  --> $DIR/attributes-on-modules-fail.rs:24:5
27   |
28LL |     mod inner;
29   |     ^^^^^^^^^^
30   |
31   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
32   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
33
34error[E0658]: custom attributes cannot be applied to modules
35  --> $DIR/attributes-on-modules-fail.rs:22:1
36   |
37LL | #[empty_attr]
38   | ^^^^^^^^^^^^^
39   |
40   = note: for more information, see https://github.com/rust-lang/rust/issues/54727
41   = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
42
43error[E0412]: cannot find type `Y` in this scope
44  --> $DIR/attributes-on-modules-fail.rs:10:14
45   |
46LL |     type A = Y;
47   |     ---------^- similarly named type alias `A` defined here
48   |
49help: a type alias with a similar name exists
50   |
51LL |     type A = A;
52   |              ^
53help: possible candidate is found in another module, you can import it into scope
54   |
55LL |     use Y;
56   |
57
58error[E0412]: cannot find type `X` in this scope
59  --> $DIR/attributes-on-modules-fail.rs:14:10
60   |
61LL | type A = X;
62   | ---------^- similarly named type alias `A` defined here
63   |
64help: a type alias with a similar name exists
65   |
66LL | type A = A;
67   |          ^
68help: possible candidate is found in another module, you can import it into scope
69   |
70LL | use m::X;
71   |
72
73error: aborting due to 7 previous errors
74
75Some errors have detailed explanations: E0412, E0658.
76For more information about an error, try `rustc --explain E0412`.