rust/tests/ui/tool-attributes/tool-attributes-misplaced-2.rs

7 lines
205 B
Rust

#[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`
}