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