2023-03-10 13:50:51 +01:00
|
|
|
error: `#[target_feature(..)]` cannot be applied to safe trait method
|
|
|
|
--> $DIR/trait-impl.rs:22:5
|
|
|
|
|
|
|
|
|
LL | #[target_feature(enable = "sse2")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be applied to safe trait method
|
|
|
|
LL |
|
|
|
|
LL | fn foo(&self) {}
|
|
|
|
| ------------- not an `unsafe` function
|
|
|
|
|
2020-05-01 15:32:28 +02:00
|
|
|
error: `#[target_feature(..)]` cannot be applied to safe trait method
|
2023-03-02 13:41:17 +01:00
|
|
|
--> $DIR/trait-impl.rs:13:5
|
2020-05-01 15:32:28 +02:00
|
|
|
|
|
|
|
|
LL | #[target_feature(enable = "sse2")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot be applied to safe trait method
|
|
|
|
LL |
|
|
|
|
LL | fn foo(&self) {}
|
2020-08-12 17:02:14 -04:00
|
|
|
| ------------- not an `unsafe` function
|
2020-05-01 15:32:28 +02:00
|
|
|
|
2023-03-10 13:50:51 +01:00
|
|
|
error: aborting due to 2 previous errors
|
2020-05-01 15:32:28 +02:00
|
|
|
|