diff options
Diffstat (limited to 'src/test/ui/tool-attributes/tool-attributes-misplaced-2.rs')
-rw-r--r-- | src/test/ui/tool-attributes/tool-attributes-misplaced-2.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/tool-attributes/tool-attributes-misplaced-2.rs b/src/test/ui/tool-attributes/tool-attributes-misplaced-2.rs new file mode 100644 index 000000000..b5666e4ea --- /dev/null +++ b/src/test/ui/tool-attributes/tool-attributes-misplaced-2.rs @@ -0,0 +1,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` +} |