]> git.proxmox.com Git - rustc.git/blob - tests/ui/rfcs/rfc-2396-target_feature-11/trait-impl.stderr
07d6e09005906c19cbe33076d7c6193c1ade7337
[rustc.git] / tests / ui / rfcs / rfc-2396-target_feature-11 / trait-impl.stderr
1 error: `#[target_feature(..)]` cannot be applied to safe trait method
2 --> $DIR/trait-impl.rs:13:5
3 |
4 LL | #[target_feature(enable = "sse2")]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be applied to safe trait method
6 LL |
7 LL | fn foo(&self) {}
8 | ------------- not an `unsafe` function
9
10 error: aborting due to previous error
11