-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 16 additions & 7 deletions
23
src/test/ui/lint/issue-50589-multiple-associated-types.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
warning: duplicate associated type binding | ||
--> $DIR/issue-50589-multiple-associated-types.rs:17:28 | ||
warning: associated type binding `Item` specified more than once | ||
--> $DIR/issue-50589-multiple-associated-types.rs:17:39 | ||
| | ||
LL | fn test() -> Box<Iterator<Item = (), Item = Unit>> { | ||
| ^^^^^^^^^ ^^^^^^^^^^^ | ||
| --------- ^^^^^^^^^^^ used more than once | ||
| | | ||
| first use of `Item` | ||
| | ||
= note: #[warn(duplicate_associated_type_binding)] on by default | ||
= note: #[warn(duplicate_associated_type_bindings)] on by default | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #50589 <https://github.com/rust-lang/rust/issues/50589> | ||
|
||
warning: duplicate associated type binding | ||
--> $DIR/issue-50589-multiple-associated-types.rs:17:28 | ||
warning: associated type binding `Item` specified more than once | ||
--> $DIR/issue-50589-multiple-associated-types.rs:17:39 | ||
| | ||
LL | fn test() -> Box<Iterator<Item = (), Item = Unit>> { | ||
| ^^^^^^^^^ ^^^^^^^^^^^ | ||
| --------- ^^^^^^^^^^^ used more than once | ||
| | | ||
| first use of `Item` | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #50589 <https://github.com/rust-lang/rust/issues/50589> | ||
|