rust/tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs
Léo Lanteri Thauvin bfe5189904 Revert "Stabilize #![feature(target_feature_11)]"
This reverts commit b379d216ee.
2023-03-02 13:41:17 +01:00

22 lines
348 B
Rust

// only-x86_64
#![feature(target_feature_11)]
trait Foo {
fn foo(&self);
unsafe fn unsf_foo(&self);
}
struct Bar;
impl Foo for Bar {
#[target_feature(enable = "sse2")]
//~^ ERROR cannot be applied to safe trait method
fn foo(&self) {}
#[target_feature(enable = "sse2")]
unsafe fn unsf_foo(&self) {}
}
fn main() {}