1 error: cannot find derive macro `rustfmt` in this scope
2 --> $DIR/tool-attributes-misplaced-1.rs:16:10
4 LL | #[derive(rustfmt)] //~ ERROR cannot find derive macro `rustfmt` in this scope
7 error: cannot find macro `rustfmt!` in this scope
8 --> $DIR/tool-attributes-misplaced-1.rs:25:5
10 LL | rustfmt!(); //~ ERROR cannot find macro `rustfmt!` in this scope
13 error[E0573]: expected type, found tool module `rustfmt`
14 --> $DIR/tool-attributes-misplaced-1.rs:13:10
16 LL | type A = rustfmt; //~ ERROR expected type, found tool module `rustfmt`
19 error[E0573]: expected type, found tool attribute `rustfmt::skip`
20 --> $DIR/tool-attributes-misplaced-1.rs:14:10
22 LL | type B = rustfmt::skip; //~ ERROR expected type, found tool attribute `rustfmt::skip`
23 | ^^^^^^^^^^^^^ not a type
25 error[E0423]: expected value, found tool module `rustfmt`
26 --> $DIR/tool-attributes-misplaced-1.rs:24:5
28 LL | rustfmt; //~ ERROR expected value, found tool module `rustfmt`
31 error[E0423]: expected value, found tool attribute `rustfmt::skip`
32 --> $DIR/tool-attributes-misplaced-1.rs:27:5
34 LL | rustfmt::skip; //~ ERROR expected value, found tool attribute `rustfmt::skip`
35 | ^^^^^^^^^^^^^ not a value
37 error: aborting due to 6 previous errors
39 Some errors occurred: E0423, E0573.
40 For more information about an error, try `rustc --explain E0423`.