1 error[E0518]: attribute should be applied to function or closure
2 --> $DIR/multiple-invalid.rs:4:1
7 LL | const FOO: u8 = 0;
8 | ------------------ not a function or closure
10 error: attribute should be applied to a function definition
11 --> $DIR/multiple-invalid.rs:6:1
13 LL | #[target_feature(enable = "sse2")]
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 LL | const FOO: u8 = 0;
17 | ------------------ not a function definition
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0518`.