Skip to content

Commit

Permalink
Clarify why target_feature is not allowed on the implementation of sa…
Browse files Browse the repository at this point in the history
…fe trait methods.
  • Loading branch information
gnzlbg committed Nov 27, 2019
1 parent a81b5a6 commit 6b9a16f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion text/0000-target-feature-1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ The `#[target_feature]` attribute continues to be allowed on inherent methods -
this RFC does not change that.

The `#[target_feature]` attribute continues to not be allowed on safe trait
method implementations:
method implementations because that would require an `unsafe` trait method
declaration:

```rust
// Example 2:
Expand Down

0 comments on commit 6b9a16f

Please sign in to comment.