1 error: malformed `target_feature` attribute input
2 --> $DIR/target-feature-wrong.rs:16:1
4 LL | #[target_feature = "+sse2"]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[target_feature(enable = "name")]`
7 error: the feature named `foo` is not valid for this target
8 --> $DIR/target-feature-wrong.rs:18:18
10 LL | #[target_feature(enable = "foo")]
11 | ^^^^^^^^^^^^^^ `foo` is not valid for this target
13 error: malformed `target_feature` attribute input
14 --> $DIR/target-feature-wrong.rs:21:18
16 LL | #[target_feature(bar)]
17 | ^^^ help: must be of the form: `enable = ".."`
19 error: malformed `target_feature` attribute input
20 --> $DIR/target-feature-wrong.rs:23:18
22 LL | #[target_feature(disable = "baz")]
23 | ^^^^^^^^^^^^^^^ help: must be of the form: `enable = ".."`
25 error: #[target_feature(..)] can only be applied to `unsafe` functions
26 --> $DIR/target-feature-wrong.rs:27:1
28 LL | #[target_feature(enable = "sse2")]
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can only be applied to `unsafe` functions
32 | ----------- not an `unsafe` function
34 error: attribute should be applied to a function
35 --> $DIR/target-feature-wrong.rs:33:1
37 LL | #[target_feature(enable = "sse2")]
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 | -------------- not a function
43 error: cannot use #[inline(always)] with #[target_feature]
44 --> $DIR/target-feature-wrong.rs:38:1
46 LL | #[inline(always)]
49 error: aborting due to 7 previous errors