@@ -34,7 +34,7 @@ LL | fn bar() {}
3434 = note: see issue #69098 <https://github.com/rust-lang/rust/issues/69098> for more information
3535 = help: add `#![feature(target_feature_11)]` to the crate attributes to enable
3636
37- error: attribute should be applied to a function
37+ error: `#[target_feature]` attribute should be applied to a function
3838 --> $DIR/invalid-attribute.rs:35:1
3939 |
4040LL | #[target_feature(enable = "sse2")]
4343LL | mod another {}
4444 | -------------- not a function
4545
46- error: attribute should be applied to a function
46+ error: `#[target_feature]` attribute should be applied to a function
4747 --> $DIR/invalid-attribute.rs:40:1
4848 |
4949LL | #[target_feature(enable = "sse2")]
5252LL | const FOO: usize = 7;
5353 | --------------------- not a function
5454
55- error: attribute should be applied to a function
55+ error: `#[target_feature]` attribute should be applied to a function
5656 --> $DIR/invalid-attribute.rs:45:1
5757 |
5858LL | #[target_feature(enable = "sse2")]
6161LL | struct Foo;
6262 | ----------- not a function
6363
64- error: attribute should be applied to a function
64+ error: `#[target_feature]` attribute should be applied to a function
6565 --> $DIR/invalid-attribute.rs:50:1
6666 |
6767LL | #[target_feature(enable = "sse2")]
7070LL | enum Bar {}
7171 | ----------- not a function
7272
73- error: attribute should be applied to a function
73+ error: `#[target_feature]` attribute should be applied to a function
7474 --> $DIR/invalid-attribute.rs:55:1
7575 |
7676LL | #[target_feature(enable = "sse2")]
@@ -83,7 +83,7 @@ LL | | f2: u16,
8383LL | | }
8484 | |_- not a function
8585
86- error: attribute should be applied to a function
86+ error: `#[target_feature]` attribute should be applied to a function
8787 --> $DIR/invalid-attribute.rs:63:1
8888 |
8989LL | #[target_feature(enable = "sse2")]
@@ -98,7 +98,7 @@ error: cannot use `#[inline(always)]` with `#[target_feature]`
9898LL | #[inline(always)]
9999 | ^^^^^^^^^^^^^^^^^
100100
101- error: attribute should be applied to a function
101+ error: `#[target_feature]` attribute should be applied to a function
102102 --> $DIR/invalid-attribute.rs:86:5
103103 |
104104LL | #[target_feature(enable = "sse2")]
@@ -110,7 +110,7 @@ LL | | bar();
110110LL | | }
111111 | |_____- not a function
112112
113- error: attribute should be applied to a function
113+ error: `#[target_feature]` attribute should be applied to a function
114114 --> $DIR/invalid-attribute.rs:94:5
115115 |
116116LL | #[target_feature(enable = "sse2")]
0 commit comments