Skip to content

Commit 8cb94fc

Browse files
committed
Auto merge of #74246 - GuillaumeGomez:cleanup-e0719, r=Dylan-DPC
Clean up E0719 explanation r? @Dylan-DPC
2 parents f06e8e1 + 2ba68f1 commit 8cb94fc

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+2
-2
lines changed

src/librustc_error_codes/error_codes/E0719.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The value for an associated type has already been specified.
1+
An associated type value was specified more than once.
22

33
Erroneous code example:
44

@@ -25,7 +25,7 @@ trait FooTrait {}
2525
trait BarTrait {}
2626
trait FooBarTrait: FooTrait + BarTrait {}
2727
28-
struct Foo<T: Iterator<Item: FooBarTrait>> { f: T }
28+
struct Foo<T: Iterator<Item: FooBarTrait>> { f: T } // ok!
2929
```
3030

3131
For more information about associated types, see [the book][bk-at]. For more

0 commit comments

Comments
 (0)