]> git.proxmox.com Git - rustc.git/blob - src/test/ui/tool-attributes/tool-attributes-misplaced-1.stderr
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / ui / tool-attributes / tool-attributes-misplaced-1.stderr
1 error[E0658]: The attribute `rustfmt` is currently unknown to the compiler and may have meaning added to it in the future
2 --> $DIR/tool-attributes-misplaced-1.rs:8:3
3 |
4 LL | #[rustfmt]
5 | ^^^^^^^
6 |
7 = note: for more information, see https://github.com/rust-lang/rust/issues/29642
8 = help: add #![feature(custom_attribute)] to the crate attributes to enable
9
10 error: cannot find derive macro `rustfmt` in this scope
11 --> $DIR/tool-attributes-misplaced-1.rs:4:10
12 |
13 LL | #[derive(rustfmt)]
14 | ^^^^^^^
15
16 error: cannot find macro `rustfmt!` in this scope
17 --> $DIR/tool-attributes-misplaced-1.rs:14:5
18 |
19 LL | rustfmt!();
20 | ^^^^^^^
21
22 error[E0573]: expected type, found tool module `rustfmt`
23 --> $DIR/tool-attributes-misplaced-1.rs:1:10
24 |
25 LL | type A = rustfmt;
26 | ^^^^^^^ not a type
27
28 error[E0573]: expected type, found tool attribute `rustfmt::skip`
29 --> $DIR/tool-attributes-misplaced-1.rs:2:10
30 |
31 LL | type B = rustfmt::skip;
32 | ^^^^^^^^^^^^^ not a type
33
34 error[E0423]: expected value, found tool module `rustfmt`
35 --> $DIR/tool-attributes-misplaced-1.rs:13:5
36 |
37 LL | rustfmt;
38 | ^^^^^^^ not a value
39
40 error[E0423]: expected value, found tool attribute `rustfmt::skip`
41 --> $DIR/tool-attributes-misplaced-1.rs:16:5
42 |
43 LL | rustfmt::skip;
44 | ^^^^^^^^^^^^^ not a value
45
46 error: aborting due to 7 previous errors
47
48 Some errors have detailed explanations: E0423, E0658.
49 For more information about an error, try `rustc --explain E0423`.