diff options
Diffstat (limited to 'src/test/ui/attributes/tool_attributes.rs')
-rw-r--r-- | src/test/ui/attributes/tool_attributes.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/attributes/tool_attributes.rs b/src/test/ui/attributes/tool_attributes.rs new file mode 100644 index 000000000..be4a10c0e --- /dev/null +++ b/src/test/ui/attributes/tool_attributes.rs @@ -0,0 +1,13 @@ +// run-pass +// Scoped attributes should not trigger an unused attributes lint. + +#![deny(unused_attributes)] + +fn main() { + #[rustfmt::skip] + foo (); +} + +fn foo() { + assert!(true); +} |