1 error: cannot find derive macro `rustfmt` in this scope
2 --> $DIR/tool-attributes-misplaced-1.rs:4:10
4 LL | #[derive(rustfmt)]
7 = note: `rustfmt` is in scope, but it is not a derive macro
9 error: cannot find derive macro `rustfmt` in this scope
10 --> $DIR/tool-attributes-misplaced-1.rs:4:10
12 LL | #[derive(rustfmt)]
15 = note: `rustfmt` is in scope, but it is not a derive macro
17 error: cannot find attribute `rustfmt` in this scope
18 --> $DIR/tool-attributes-misplaced-1.rs:9:3
23 = note: `rustfmt` is in scope, but it is not an attribute
25 error: cannot find macro `rustfmt` in this scope
26 --> $DIR/tool-attributes-misplaced-1.rs:15:5
31 = note: `rustfmt` is in scope, but it is not a macro
33 error[E0573]: expected type, found tool module `rustfmt`
34 --> $DIR/tool-attributes-misplaced-1.rs:1:10
36 LL | type A = rustfmt;
39 error[E0573]: expected type, found tool attribute `rustfmt::skip`
40 --> $DIR/tool-attributes-misplaced-1.rs:2:10
42 LL | type B = rustfmt::skip;
43 | ^^^^^^^^^^^^^ not a type
45 error[E0423]: expected value, found tool module `rustfmt`
46 --> $DIR/tool-attributes-misplaced-1.rs:14:5
51 error[E0423]: expected value, found tool attribute `rustfmt::skip`
52 --> $DIR/tool-attributes-misplaced-1.rs:17:5
55 | ^^^^^^^^^^^^^ not a value
57 error: aborting due to 8 previous errors
59 Some errors have detailed explanations: E0423, E0573.
60 For more information about an error, try `rustc --explain E0423`.