]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attributes/multiple-invalid.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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() { }