]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/multiple-invalid.rs
Rollup merge of #106829 - compiler-errors:more-alias-combine, r=spastorino
[rust.git] / tests / 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() { }