]> git.lizzy.rs Git - rust.git/commitdiff
clean up error codes explanation
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 23 Jan 2020 12:29:15 +0000 (13:29 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 23 Jan 2020 12:29:15 +0000 (13:29 +0100)
src/librustc_error_codes/error_codes/E0220.md
src/librustc_error_codes/error_codes/E0221.md
src/librustc_error_codes/error_codes/E0222.md

index 43e075b522b4e8bca46bea34b162b0ef83178a65..4ab52b642d500b1b5db51617266e7ba4a3d9af46 100644 (file)
@@ -1,4 +1,5 @@
-You used an associated type which isn't defined in the trait.
+A used associated type wasn't defined in the trait.
+
 Erroneous code example:
 
 ```compile_fail,E0220
index 53fabf490e2c30b8ae35fd612927d1e84606c967..26111ca42933337d55ef60ca709bc48b7ee4b8ca 100644 (file)
@@ -1,5 +1,6 @@
 An attempt was made to retrieve an associated type, but the type was ambiguous.
-For example:
+
+Erroneous code example:
 
 ```compile_fail,E0221
 trait T1 {}
index 66b6c4d712b70df473e1bfe6b425fdca3e77f070..fbf1b8d7033141a7b120971e98ddc7ddefad81c5 100644 (file)
@@ -1,5 +1,6 @@
 An attempt was made to constrain an associated type.
-For example:
+
+Erroneous code example:
 
 ```compile_fail,E0222
 pub trait Vehicle {