1 #![feature(custom_attribute)]
3 type A = rustfmt; //~ ERROR expected type, found tool module `rustfmt`
4 type B = rustfmt::skip; //~ ERROR expected type, found tool attribute `rustfmt::skip`
6 #[derive(rustfmt)] //~ ERROR cannot find derive macro `rustfmt` in this scope
9 #[rustfmt] // OK, interpreted as a custom attribute
12 #[rustfmt::skip] // OK
14 rustfmt; //~ ERROR expected value, found tool module `rustfmt`
15 rustfmt!(); //~ ERROR cannot find macro `rustfmt!` in this scope
17 rustfmt::skip; //~ ERROR expected value, found tool attribute `rustfmt::skip`