1 error: cannot find derive macro `rustfmt` in this scope
2 --> $DIR/tool-attributes-misplaced-1.rs:4:10
4 LL | #[derive(rustfmt)]
7 error: cannot find derive macro `rustfmt` in this scope
8 --> $DIR/tool-attributes-misplaced-1.rs:4:10
10 LL | #[derive(rustfmt)]
13 error: cannot find attribute `rustfmt` in this scope
14 --> $DIR/tool-attributes-misplaced-1.rs:9:3
19 error: cannot find macro `rustfmt` in this scope
20 --> $DIR/tool-attributes-misplaced-1.rs:15:5
25 error[E0573]: expected type, found tool module `rustfmt`
26 --> $DIR/tool-attributes-misplaced-1.rs:1:10
28 LL | type A = rustfmt;
31 error[E0573]: expected type, found tool attribute `rustfmt::skip`
32 --> $DIR/tool-attributes-misplaced-1.rs:2:10
34 LL | type B = rustfmt::skip;
35 | ^^^^^^^^^^^^^ not a type
37 error[E0423]: expected value, found tool module `rustfmt`
38 --> $DIR/tool-attributes-misplaced-1.rs:14:5
43 error[E0423]: expected value, found tool attribute `rustfmt::skip`
44 --> $DIR/tool-attributes-misplaced-1.rs:17:5
47 | ^^^^^^^^^^^^^ not a value
49 error: aborting due to 8 previous errors
51 Some errors have detailed explanations: E0423, E0573.
52 For more information about an error, try `rustc --explain E0423`.