]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/attributes-on-modules-fail.stderr
Update tests
[rust.git] / src / test / ui / proc-macro / attributes-on-modules-fail.stderr
1 error[E0774]: `derive` may only be applied to structs, enums and unions
2   --> $DIR/attributes-on-modules-fail.rs:16:1
3    |
4 LL | #[derive(Copy)]
5    | ^^^^^^^^^^^^^^^
6
7 error[E0658]: non-inline modules in proc macro input are unstable
8   --> $DIR/attributes-on-modules-fail.rs:20:1
9    |
10 LL | mod module;
11    | ^^^^^^^^^^^
12    |
13    = note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information
14    = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
15
16 error[E0658]: non-inline modules in proc macro input are unstable
17   --> $DIR/attributes-on-modules-fail.rs:24:5
18    |
19 LL |     mod inner;
20    |     ^^^^^^^^^^
21    |
22    = note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information
23    = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
24
25 error[E0658]: non-inline modules in proc macro input are unstable
26   --> $DIR/attributes-on-modules-fail.rs:33:9
27    |
28 LL |         mod inner;
29    |         ^^^^^^^^^^
30    |
31    = note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information
32    = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
33
34 error[E0658]: non-inline modules in proc macro input are unstable
35   --> $DIR/attributes-on-modules-fail.rs:42:5
36    |
37 LL |     mod inner;
38    |     ^^^^^^^^^^
39    |
40    = note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information
41    = help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable
42
43 error[E0412]: cannot find type `Y` in this scope
44   --> $DIR/attributes-on-modules-fail.rs:10:14
45    |
46 LL |     type A = Y;
47    |              ^ not found in this scope
48    |
49 help: consider importing this struct
50    |
51 LL |     use Y;
52    |
53
54 error[E0412]: cannot find type `X` in this scope
55   --> $DIR/attributes-on-modules-fail.rs:14:10
56    |
57 LL | type A = X;
58    |          ^ not found in this scope
59    |
60 help: consider importing this struct
61    |
62 LL | use m::X;
63    |
64
65 error: aborting due to 7 previous errors
66
67 Some errors have detailed explanations: E0412, E0658, E0774.
68 For more information about an error, try `rustc --explain E0412`.