]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfcs/rfc-2396-target_feature-11/trait-impl.stderr
Rollup merge of #75837 - GuillaumeGomez:fix-font-color-help-button, r=Cldfire
[rust.git] / src / test / 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