@@ -2,7 +2,7 @@ warning: trait-associated function `from_iter` will become ambiguous in Rust 202
22 --> $DIR/future-prelude-collision-generic.rs:28:5
33 |
44LL | Generic::from_iter(1);
5- | ^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<Generic<_, _> as MyFromIter>::from_iter`
5+ | ^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<Generic<' _, _> as MyFromIter>::from_iter`
66 |
77note: the lint level is defined here
88 --> $DIR/future-prelude-collision-generic.rs:5:9
@@ -15,17 +15,17 @@ LL | #![warn(rust_2021_prelude_collisions)]
1515warning: trait-associated function `from_iter` will become ambiguous in Rust 2021
1616 --> $DIR/future-prelude-collision-generic.rs:31:5
1717 |
18- LL | Generic::<i32 , i32>::from_iter(1);
19- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<Generic::<i32 , i32> as MyFromIter>::from_iter`
18+ LL | Generic::<'static , i32>::from_iter(1);
19+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<Generic::<'static , i32> as MyFromIter>::from_iter`
2020 |
2121 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
2222 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html>
2323
2424warning: trait-associated function `from_iter` will become ambiguous in Rust 2021
2525 --> $DIR/future-prelude-collision-generic.rs:34:5
2626 |
27- LL | Generic::<_, _>::from_iter(1);
28- | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<Generic::<_, _> as MyFromIter>::from_iter`
27+ LL | Generic::<' _, _>::from_iter(1);
28+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<Generic::<' _, _> as MyFromIter>::from_iter`
2929 |
3030 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
3131 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/prelude.html>
0 commit comments