]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / rfcs / rfc-2396-target_feature-11 / trait-impl.rs
index 7314fa8cced2aa5921147578de949b0696901594..9108f27b5f7f8297d687f2dfc056d12e25b89ca0 100644 (file)
@@ -18,4 +18,10 @@ impl Foo for Bar {
     unsafe fn unsf_foo(&self) {}
 }
 
+trait Qux {
+    #[target_feature(enable = "sse2")]
+    //~^ ERROR cannot be applied to safe trait method
+    fn foo(&self) {}
+}
+
 fn main() {}