E0122: clarify wording
This commit is contained in:
parent
9475ae477a
commit
ba53f95676
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue