1 error[E0658]: The attribute `rustfmt` is currently unknown to the compiler and may have meaning added to it in the future
2 --> $DIR/tool-attributes-misplaced-1.rs:8:3
7 = note: for more information, see https://github.com/rust-lang/rust/issues/29642
8 = help: add #![feature(custom_attribute)] to the crate attributes to enable
10 error: cannot find derive macro `rustfmt` in this scope
11 --> $DIR/tool-attributes-misplaced-1.rs:4:10
13 LL | #[derive(rustfmt)]
16 error: cannot find macro `rustfmt!` in this scope
17 --> $DIR/tool-attributes-misplaced-1.rs:14:5
22 error[E0573]: expected type, found tool module `rustfmt`
23 --> $DIR/tool-attributes-misplaced-1.rs:1:10
25 LL | type A = rustfmt;
28 error[E0573]: expected type, found tool attribute `rustfmt::skip`
29 --> $DIR/tool-attributes-misplaced-1.rs:2:10
31 LL | type B = rustfmt::skip;
32 | ^^^^^^^^^^^^^ not a type
34 error[E0423]: expected value, found tool module `rustfmt`
35 --> $DIR/tool-attributes-misplaced-1.rs:13:5
40 error[E0423]: expected value, found tool attribute `rustfmt::skip`
41 --> $DIR/tool-attributes-misplaced-1.rs:16:5
44 | ^^^^^^^^^^^^^ not a value
46 error: aborting due to 7 previous errors
48 Some errors have detailed explanations: E0423, E0658.
49 For more information about an error, try `rustc --explain E0423`.