summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attributes/multiple-invalid.rs
blob: ae044eb843bd95659b07f0ca3eefac9288070a20 (plain)
1
2
3
4
5
6
7
8
9
10
// This test checks that all expected errors occur when there are multiple invalid attributes
// on an item.

#[inline]
//~^ ERROR attribute should be applied to function or closure [E0518]
#[target_feature(enable = "sse2")]
//~^ ERROR attribute should be applied to a function
const FOO: u8 = 0;

fn main() { }