]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/issue-50589-multiple-associated-types.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / lint / issue-50589-multiple-associated-types.stderr
1 warning: associated type binding `Item` specified more than once
2   --> $DIR/issue-50589-multiple-associated-types.rs:17:39
3    |
4 LL | fn test() ->  Box<Iterator<Item = (), Item = Unit>> {
5    |                            ---------  ^^^^^^^^^^^ used more than once
6    |                            |
7    |                            first use of `Item`
8    |
9    = note: #[warn(duplicate_associated_type_bindings)] on by default
10    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11    = note: for more information, see issue #50589 <https://github.com/rust-lang/rust/issues/50589>
12
13 warning: associated type binding `Item` specified more than once
14   --> $DIR/issue-50589-multiple-associated-types.rs:17:39
15    |
16 LL | fn test() ->  Box<Iterator<Item = (), Item = Unit>> {
17    |                            ---------  ^^^^^^^^^^^ used more than once
18    |                            |
19    |                            first use of `Item`
20    |
21    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22    = note: for more information, see issue #50589 <https://github.com/rust-lang/rust/issues/50589>
23