]> git.lizzy.rs Git - rust.git/blob - src/test/ui/empty/empty-attributes.rs
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
[rust.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() {}