Skip to content

Commit

Permalink
E0122: clarify wording
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jul 12, 2017
1 parent 9475ae4 commit ba53f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_typeck/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1611,8 +1611,8 @@ static BAR: _ = "test"; // error, explicitly write out the type instead
"##,

E0122: r##"
An attempt was made to add a generic constraint to a type alias. While Rust will
allow this with a warning, it will not currently enforce the constraint.
An attempt was made to add a generic constraint to a type alias. This constraint is
entirely ignored. For backwards compatibility, Rust still allows this with a warning.
Consider the example below:
```
Expand Down

0 comments on commit ba53f95

Please sign in to comment.