summaryrefslogtreecommitdiffstats
path: root/tests/ui/tool-attributes/tool-attributes-misplaced-2.rs
blob: b5666e4ea7072044a753d42143b32111c1d8cc9f (plain)
1
2
3
4
5
6
#[derive(rustfmt::skip)] //~ ERROR expected derive macro, found tool attribute `rustfmt::skip`
struct S;

fn main() {
    rustfmt::skip!(); //~ ERROR expected macro, found tool attribute `rustfmt::skip`
}