]> git.lizzy.rs Git - rust.git/commitdiff
Clean up E0719 explanation
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 11 Jul 2020 16:10:46 +0000 (18:10 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 11 Jul 2020 16:10:57 +0000 (18:10 +0200)
src/librustc_error_codes/error_codes/E0719.md

index 38bc63550ac7ff0f0541becc1eef0e0076d47f77..057a0b1645c57c24164e80eb5752588e97caad0c 100644 (file)
@@ -1,4 +1,4 @@
-The value for an associated type has already been specified.
+An associated type value was specified more than once.
 
 Erroneous code example:
 
@@ -25,7 +25,7 @@ trait FooTrait {}
 trait BarTrait {}
 trait FooBarTrait: FooTrait + BarTrait {}
 
-struct Foo<T: Iterator<Item: FooBarTrait>> { f: T }
+struct Foo<T: Iterator<Item: FooBarTrait>> { f: T } // ok!
 ```
 
 For more information about associated types, see [the book][bk-at]. For more