about summary refs log tree commit diff
path: root/src/test/ui/rfcs/rfc-2396-target_feature-11/trait-impl.stderr
blob: 3c56e0fc5c6e34765b5f5c47c6a160889974d820 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: `#[target_feature(..)]` cannot be applied to safe trait method
  --> $DIR/trait-impl.rs:13:5
   |
LL |     #[target_feature(enable = "sse2")]
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be applied to safe trait method
LL |
LL |     fn foo(&self) {}
   |     ---------------- not an `unsafe` function

error: aborting due to previous error