rust/tests/ui/attributes/multiple-invalid.rs
2023-01-11 09:32:08 +00:00

11 lines
312 B
Rust

// 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() { }