]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/tool-attributes/tool-attributes-misplaced-1.rs
1 type A
= rustfmt
; //~ ERROR expected type, found tool module `rustfmt`
2 type B
= rustfmt
::skip
; //~ ERROR expected type, found tool attribute `rustfmt::skip`
4 #[derive(rustfmt)] //~ ERROR cannot find derive macro `rustfmt` in this scope
5 //~| ERROR cannot find derive macro `rustfmt` in this scope
8 // Interpreted as an unstable custom attribute
9 #[rustfmt] //~ ERROR cannot find attribute `rustfmt` in this scope
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`