]> git.lizzy.rs Git - rust.git/blob - src/test/ui/target-feature-wrong.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / target-feature-wrong.stderr
1 error: #[target_feature] attribute must be of the form #[target_feature(..)]
2   --> $DIR/target-feature-wrong.rs:26:1
3    |
4 LL | #[target_feature = "+sse2"]
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error: the feature named `foo` is not valid for this target
8   --> $DIR/target-feature-wrong.rs:28:18
9    |
10 LL | #[target_feature(enable = "foo")]
11    |                  ^^^^^^^^^^^^^^
12
13 error: #[target_feature(..)] only accepts sub-keys of `enable` currently
14   --> $DIR/target-feature-wrong.rs:30:18
15    |
16 LL | #[target_feature(bar)]
17    |                  ^^^
18
19 error: #[target_feature(..)] only accepts sub-keys of `enable` currently
20   --> $DIR/target-feature-wrong.rs:32:18
21    |
22 LL | #[target_feature(disable = "baz")]
23    |                  ^^^^^^^^^^^^^^^
24
25 error: #[target_feature(..)] can only be applied to `unsafe` function
26   --> $DIR/target-feature-wrong.rs:36:1
27    |
28 LL | #[target_feature(enable = "sse2")]
29    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 error: attribute should be applied to a function
32   --> $DIR/target-feature-wrong.rs:40:1
33    |
34 LL | #[target_feature(enable = "sse2")]
35    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36 LL | //~^ ERROR: should be applied to a function
37 LL | mod another {}
38    | -------------- not a function
39
40 error: cannot use #[inline(always)] with #[target_feature]
41   --> $DIR/target-feature-wrong.rs:44:1
42    |
43 LL | #[inline(always)]
44    | ^^^^^^^^^^^^^^^^^
45
46 error: aborting due to 7 previous errors
47