]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/multiple-invalid.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[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() { }