diff options
Diffstat (limited to 'tests/ui/attributes/tool_attributes.rs')
| -rw-r--r-- | tests/ui/attributes/tool_attributes.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/attributes/tool_attributes.rs b/tests/ui/attributes/tool_attributes.rs new file mode 100644 index 00000000000..be4a10c0ee9 --- /dev/null +++ b/tests/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); +} |
