]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/diagnostics.rs
Merge remote-tracking branch 'origin/master' into gen
[rust.git] / src / librustc_typeck / diagnostics.rs
index 4c608249ee95a4139e4e38e8bdb546d4d60e2ee5..f5ecedcebb49389738486d44631be6abaf63010c 100644 (file)
@@ -1525,9 +1525,9 @@ fn foo() -> _ { 5 } // error, explicitly write out the return 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.
-Consider the example below:
+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:
 
 ```
 trait Foo{}