Skip to content

Commit ba53f95

Browse files
committed
E0122: clarify wording
1 parent 9475ae4 commit ba53f95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,8 +1611,8 @@ static BAR: _ = "test"; // error, explicitly write out the type instead
16111611
"##,
16121612

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

0 commit comments

Comments
 (0)