]> git.lizzy.rs Git - rust.git/commitdiff
E0122: clarify wording
authorRalf Jung <post@ralfj.de>
Wed, 12 Jul 2017 00:44:48 +0000 (17:44 -0700)
committerRalf Jung <post@ralfj.de>
Wed, 12 Jul 2017 00:44:48 +0000 (17:44 -0700)
src/librustc_typeck/diagnostics.rs

index 87e59683fd2a8d49a40593051312a84bad1f7211..050d8967816526679dd8a7e0c9cb5e1e859f8a97 100644 (file)
@@ -1611,8 +1611,8 @@ 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.
+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:
 
 ```