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