1 error: malformed `target_feature` attribute input
2 --> $DIR/invalid-attribute.rs:18: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/invalid-attribute.rs:20:18
10 LL | #[target_feature(enable = "foo")]
11 | ^^^^^^^^^^^^^^ `foo` is not valid for this target
13 error: malformed `target_feature` attribute input
14 --> $DIR/invalid-attribute.rs:23:18
16 LL | #[target_feature(bar)]
17 | ^^^ help: must be of the form: `enable = ".."`
19 error: malformed `target_feature` attribute input
20 --> $DIR/invalid-attribute.rs:25:18
22 LL | #[target_feature(disable = "baz")]
23 | ^^^^^^^^^^^^^^^ help: must be of the form: `enable = ".."`
25 error[E0658]: `#[target_feature(..)]` can only be applied to `unsafe` functions
26 --> $DIR/invalid-attribute.rs:29:1
28 LL | #[target_feature(enable = "sse2")]
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 | -------- not an `unsafe` function
34 = note: see issue #69098 <https://github.com/rust-lang/rust/issues/69098> for more information
35 = help: add `#![feature(target_feature_11)]` to the crate attributes to enable
37 error: attribute should be applied to a function
38 --> $DIR/invalid-attribute.rs:35:1
40 LL | #[target_feature(enable = "sse2")]
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44 | -------------- not a function
46 error: attribute should be applied to a function
47 --> $DIR/invalid-attribute.rs:40:1
49 LL | #[target_feature(enable = "sse2")]
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 LL | const FOO: usize = 7;
53 | --------------------- not a function
55 error: attribute should be applied to a function
56 --> $DIR/invalid-attribute.rs:45:1
58 LL | #[target_feature(enable = "sse2")]
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62 | ----------- not a function
64 error: attribute should be applied to a function
65 --> $DIR/invalid-attribute.rs:50:1
67 LL | #[target_feature(enable = "sse2")]
68 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71 | ----------- not a function
73 error: attribute should be applied to a function
74 --> $DIR/invalid-attribute.rs:55:1
76 LL | #[target_feature(enable = "sse2")]
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
86 error: attribute should be applied to a function
87 --> $DIR/invalid-attribute.rs:63:1
89 LL | #[target_feature(enable = "sse2")]
90 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93 | ------------ not a function
95 error: cannot use `#[inline(always)]` with `#[target_feature]`
96 --> $DIR/invalid-attribute.rs:68:1
98 LL | #[inline(always)]
101 error: attribute should be applied to a function
102 --> $DIR/invalid-attribute.rs:86:5
104 LL | #[target_feature(enable = "sse2")]
105 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111 | |_____- not a function
113 error: attribute should be applied to a function
114 --> $DIR/invalid-attribute.rs:94:5
116 LL | #[target_feature(enable = "sse2")]
117 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120 | ----- not a function
122 error[E0658]: `#[target_feature(..)]` can only be applied to `unsafe` functions
123 --> $DIR/invalid-attribute.rs:78:5
125 LL | #[target_feature(enable = "sse2")]
126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
129 | -------- not an `unsafe` function
131 = note: see issue #69098 <https://github.com/rust-lang/rust/issues/69098> for more information
132 = help: add `#![feature(target_feature_11)]` to the crate attributes to enable
134 error: aborting due to 15 previous errors
136 For more information about this error, try `rustc --explain E0658`.