]> git.proxmox.com Git - rustc.git/blob - src/test/ui/empty/empty-attributes.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / empty / empty-attributes.rs
1 #![feature(lint_reasons)]
2
3 #![deny(unused_attributes)]
4 #![allow()] //~ ERROR unused attribute
5 #![expect()] //~ ERROR unused attribute
6 #![warn()] //~ ERROR unused attribute
7 #![deny()] //~ ERROR unused attribute
8 #![forbid()] //~ ERROR unused attribute
9 #![feature()] //~ ERROR unused attribute
10
11 #[repr()] //~ ERROR unused attribute
12 pub struct S;
13
14 #[target_feature()] //~ ERROR unused attribute
15 pub unsafe fn foo() {}
16
17 fn main() {}