]> git.lizzy.rs Git - rust.git/commitdiff
Clean up error codes E0223 and E0225 explanations
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 24 Jan 2020 11:56:32 +0000 (12:56 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Fri, 24 Jan 2020 11:56:32 +0000 (12:56 +0100)
src/librustc_error_codes/error_codes/E0223.md
src/librustc_error_codes/error_codes/E0225.md

index 9fe036042558760f36b40270340533f42528b775..0d49f514ccf4d06d7fd9c176e694ad8817fda370 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,E0223
 trait MyTrait {type X; }
index b9820dc68eeeb585382064d9d417ddfdc688984c..c306e710097157f994828a52f43e5c43dff0cc29 100644 (file)
@@ -1,5 +1,6 @@
-You attempted to use multiple types as bounds for a closure or trait object.
-Rust does not currently support this. A simple example that causes this error:
+Multiple types were used as bounds for a closure or trait object.
+
+Erroneous code example:
 
 ```compile_fail,E0225
 fn main() {
@@ -7,6 +8,8 @@ fn main() {
 }
 ```
 
+Rust does not currently support this.
+
 Auto traits such as Send and Sync are an exception to this rule:
 It's possible to have bounds of one non-builtin trait, plus any number of
 auto traits. For example, the following compiles correctly: