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