diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2024-12-13 12:19:46 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-01-15 08:58:17 +0000 |
| commit | 56178ddc90d50426f35ab5a9adce8419d5dc3cac (patch) | |
| tree | 6425e577f653afce6f8f1620230abe3e560e74ac /tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs | |
| parent | a907c56a77b6e9328441373c39517d38ef045ecf (diff) | |
| download | rust-56178ddc90d50426f35ab5a9adce8419d5dc3cac.tar.gz rust-56178ddc90d50426f35ab5a9adce8419d5dc3cac.zip | |
Treat safe target_feature functions as unsafe by default
Diffstat (limited to 'tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs')
| -rw-r--r-- | tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs b/tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs index df575b0f6b6..a2ac6ff45fc 100644 --- a/tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs +++ b/tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs @@ -13,6 +13,7 @@ impl Foo for Bar { #[target_feature(enable = "sse2")] //~^ ERROR cannot be applied to safe trait method fn foo(&self) {} + //~^ ERROR method `foo` has an incompatible type for trait #[target_feature(enable = "sse2")] unsafe fn unsf_foo(&self) {} |
