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