diff options
Diffstat (limited to 'src/test/ui/empty/empty-attributes.rs')
-rw-r--r-- | src/test/ui/empty/empty-attributes.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/empty/empty-attributes.rs b/src/test/ui/empty/empty-attributes.rs new file mode 100644 index 000000000..d319227b2 --- /dev/null +++ b/src/test/ui/empty/empty-attributes.rs @@ -0,0 +1,17 @@ +#![feature(lint_reasons)] + +#![deny(unused_attributes)] +#![allow()] //~ ERROR unused attribute +#![expect()] //~ ERROR unused attribute +#![warn()] //~ ERROR unused attribute +#![deny()] //~ ERROR unused attribute +#![forbid()] //~ ERROR unused attribute +#![feature()] //~ ERROR unused attribute + +#[repr()] //~ ERROR unused attribute +pub struct S; + +#[target_feature()] //~ ERROR unused attribute +pub unsafe fn foo() {} + +fn main() {} |