@@ -34,7 +34,7 @@ LL | fn bar() {}
34
34
= note: see issue #69098 <https://github.com/rust-lang/rust/issues/69098> for more information
35
35
= help: add `#![feature(target_feature_11)]` to the crate attributes to enable
36
36
37
- error: attribute should be applied to a function
37
+ error: `#[target_feature]` attribute should be applied to a function
38
38
--> $DIR/invalid-attribute.rs:35:1
39
39
|
40
40
LL | #[target_feature(enable = "sse2")]
43
43
LL | mod another {}
44
44
| -------------- not a function
45
45
46
- error: attribute should be applied to a function
46
+ error: `#[target_feature]` attribute should be applied to a function
47
47
--> $DIR/invalid-attribute.rs:40:1
48
48
|
49
49
LL | #[target_feature(enable = "sse2")]
52
52
LL | const FOO: usize = 7;
53
53
| --------------------- not a function
54
54
55
- error: attribute should be applied to a function
55
+ error: `#[target_feature]` attribute should be applied to a function
56
56
--> $DIR/invalid-attribute.rs:45:1
57
57
|
58
58
LL | #[target_feature(enable = "sse2")]
61
61
LL | struct Foo;
62
62
| ----------- not a function
63
63
64
- error: attribute should be applied to a function
64
+ error: `#[target_feature]` attribute should be applied to a function
65
65
--> $DIR/invalid-attribute.rs:50:1
66
66
|
67
67
LL | #[target_feature(enable = "sse2")]
70
70
LL | enum Bar {}
71
71
| ----------- not a function
72
72
73
- error: attribute should be applied to a function
73
+ error: `#[target_feature]` attribute should be applied to a function
74
74
--> $DIR/invalid-attribute.rs:55:1
75
75
|
76
76
LL | #[target_feature(enable = "sse2")]
@@ -83,7 +83,7 @@ LL | | f2: u16,
83
83
LL | | }
84
84
| |_- not a function
85
85
86
- error: attribute should be applied to a function
86
+ error: `#[target_feature]` attribute should be applied to a function
87
87
--> $DIR/invalid-attribute.rs:63:1
88
88
|
89
89
LL | #[target_feature(enable = "sse2")]
@@ -98,7 +98,7 @@ error: cannot use `#[inline(always)]` with `#[target_feature]`
98
98
LL | #[inline(always)]
99
99
| ^^^^^^^^^^^^^^^^^
100
100
101
- error: attribute should be applied to a function
101
+ error: `#[target_feature]` attribute should be applied to a function
102
102
--> $DIR/invalid-attribute.rs:86:5
103
103
|
104
104
LL | #[target_feature(enable = "sse2")]
@@ -110,7 +110,7 @@ LL | | bar();
110
110
LL | | }
111
111
| |_____- not a function
112
112
113
- error: attribute should be applied to a function
113
+ error: `#[target_feature]` attribute should be applied to a function
114
114
--> $DIR/invalid-attribute.rs:94:5
115
115
|
116
116
LL | #[target_feature(enable = "sse2")]
0 commit comments