]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/multiple-invalid.rs
Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9
[rust.git] / src / test / ui / attributes / multiple-invalid.rs
1 // This test checks that all expected errors occur when there are multiple invalid attributes
2 // on an item.
3
4 #[inline]
5 //~^ ERROR attribute should be applied to function or closure [E0518]
6 #[target_feature(enable = "sse2")]
7 //~^ ERROR attribute should be applied to a function
8 const FOO: u8 = 0;
9
10 fn main() { }