Fix for new error message

This commit is contained in:
James Barford-Evans
2026-05-15 09:02:44 +01:00
parent 812e230fb9
commit 0453288ecc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ trait Baz {}
#[inline(always)]
//~^ ERROR: cannot use `#[inline(always)]`
//~| NOTE: See issue here for full discussion; https://github.com/rust-lang/rust/issues/145574
//~| NOTE: See this issue for full discussion: https://github.com/rust-lang/rust/issues/145574
#[target_feature(enable = "sse2")]
unsafe fn test() {}
@@ -166,7 +166,7 @@ error: cannot use `#[inline(always)]` with `#[target_feature]`
LL | #[inline(always)]
| ^^^^^^^^^^^^^^^^^
|
= note: See issue here for full discussion; https://github.com/rust-lang/rust/issues/145574
= note: See this issue for full discussion: https://github.com/rust-lang/rust/issues/145574
error: the feature named `foo` is not valid for this target
--> $DIR/invalid-attribute.rs:26:18