]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tool-attributes/tool-attributes-misplaced-1.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / tool-attributes / tool-attributes-misplaced-1.stderr
1 error: cannot find derive macro `rustfmt` in this scope
2   --> $DIR/tool-attributes-misplaced-1.rs:16:10
3    |
4 LL | #[derive(rustfmt)] //~ ERROR cannot find derive macro `rustfmt` in this scope
5    |          ^^^^^^^
6
7 error: cannot find macro `rustfmt!` in this scope
8   --> $DIR/tool-attributes-misplaced-1.rs:25:5
9    |
10 LL |     rustfmt!(); //~ ERROR cannot find macro `rustfmt!` in this scope
11    |     ^^^^^^^
12
13 error[E0573]: expected type, found tool module `rustfmt`
14   --> $DIR/tool-attributes-misplaced-1.rs:13:10
15    |
16 LL | type A = rustfmt; //~ ERROR expected type, found tool module `rustfmt`
17    |          ^^^^^^^ not a type
18
19 error[E0573]: expected type, found tool attribute `rustfmt::skip`
20   --> $DIR/tool-attributes-misplaced-1.rs:14:10
21    |
22 LL | type B = rustfmt::skip; //~ ERROR expected type, found tool attribute `rustfmt::skip`
23    |          ^^^^^^^^^^^^^ not a type
24
25 error[E0423]: expected value, found tool module `rustfmt`
26   --> $DIR/tool-attributes-misplaced-1.rs:24:5
27    |
28 LL |     rustfmt; //~ ERROR expected value, found tool module `rustfmt`
29    |     ^^^^^^^ not a value
30
31 error[E0423]: expected value, found tool attribute `rustfmt::skip`
32   --> $DIR/tool-attributes-misplaced-1.rs:27:5
33    |
34 LL |     rustfmt::skip; //~ ERROR expected value, found tool attribute `rustfmt::skip`
35    |     ^^^^^^^^^^^^^ not a value
36
37 error: aborting due to 6 previous errors
38
39 Some errors occurred: E0423, E0573.
40 For more information about an error, try `rustc --explain E0423`.