]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0719.stderr
Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup
[rust.git] / src / test / ui / error-codes / E0719.stderr
1 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
2   --> $DIR/E0719.rs:1:33
3    |
4 LL | trait Foo: Iterator<Item = i32, Item = i32> {}
5    |                     ----------  ^^^^^^^^^^ re-bound here
6    |                     |
7    |                     `Item` bound here first
8
9 error[E0719]: the value of the associated type `Item` (from trait `Iterator`) is already specified
10   --> $DIR/E0719.rs:6:42
11    |
12 LL | fn test() -> Box<dyn Iterator<Item = (), Item = Unit>> {
13    |                               ---------  ^^^^^^^^^^^ re-bound here
14    |                               |
15    |                               `Item` bound here first
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0719`.