mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
11 lines
312 B
Rust
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() { }
|