1 error: #[target_feature] attribute must be of the form #[target_feature(..)]
2 --> $DIR/target-feature-wrong.rs:26:1
4 LL | #[target_feature = "+sse2"]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 error: the feature named `foo` is not valid for this target
8 --> $DIR/target-feature-wrong.rs:28:18
10 LL | #[target_feature(enable = "foo")]
13 error: #[target_feature(..)] only accepts sub-keys of `enable` currently
14 --> $DIR/target-feature-wrong.rs:30:18
16 LL | #[target_feature(bar)]
19 error: #[target_feature(..)] only accepts sub-keys of `enable` currently
20 --> $DIR/target-feature-wrong.rs:32:18
22 LL | #[target_feature(disable = "baz")]
25 error: #[target_feature(..)] can only be applied to `unsafe` function
26 --> $DIR/target-feature-wrong.rs:36:1
28 LL | #[target_feature(enable = "sse2")]
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 error: attribute should be applied to a function
32 --> $DIR/target-feature-wrong.rs:40:1
34 LL | #[target_feature(enable = "sse2")]
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36 LL | //~^ ERROR: should be applied to a function
38 | -------------- not a function
40 error: cannot use #[inline(always)] with #[target_feature]
41 --> $DIR/target-feature-wrong.rs:44:1
43 LL | #[inline(always)]
46 error: aborting due to 7 previous errors