|
1 | 1 | warning: trait method `try_into` will become ambiguous in Rust 2021
|
2 |
| - --> $DIR/future-prelude-collision.rs:40:18 |
| 2 | + --> $DIR/future-prelude-collision.rs:47:18 |
3 | 3 | |
|
4 | 4 | LL | let _: u32 = 3u8.try_into().unwrap();
|
5 | 5 | | ^^^^^^^^^^^^^^ help: disambiguate the associated function: `TryIntoU32::try_into(3u8)`
|
6 | 6 | |
|
7 | 7 | = note: `#[warn(future_prelude_collision)]` on by default
|
8 | 8 |
|
9 | 9 | warning: trait-associated function `try_from` will become ambiguous in Rust 2021
|
10 |
| - --> $DIR/future-prelude-collision.rs:44:13 |
| 10 | + --> $DIR/future-prelude-collision.rs:51:13 |
11 | 11 | |
|
12 | 12 | LL | let _ = u32::try_from(3u8).unwrap();
|
13 | 13 | | ^^^^^^^^^^^^^ help: disambiguate the associated function: `<u32 as TryFromU8>::try_from`
|
14 | 14 |
|
15 | 15 | warning: trait-associated function `from_iter` will become ambiguous in Rust 2021
|
16 |
| - --> $DIR/future-prelude-collision.rs:48:13 |
| 16 | + --> $DIR/future-prelude-collision.rs:55:13 |
17 | 17 | |
|
18 | 18 | LL | let _ = <Vec<u8>>::from_iter(vec![1u8, 2, 3, 4, 5, 6].into_iter());
|
19 | 19 | | ^^^^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `<Vec<u8> as FromByteIterator>::from_iter`
|
20 | 20 |
|
21 | 21 | warning: trait-associated function `try_from` will become ambiguous in Rust 2021
|
22 |
| - --> $DIR/future-prelude-collision.rs:55:18 |
| 22 | + --> $DIR/future-prelude-collision.rs:62:18 |
23 | 23 | |
|
24 | 24 | LL | let _: u32 = <_>::try_from(3u8).unwrap();
|
25 | 25 | | ^^^^^^^^^^^^^ help: disambiguate the associated function: `<_ as TryFromU8>::try_from`
|
26 | 26 |
|
27 |
| -warning: 4 warnings emitted |
| 27 | +warning: trait method `try_into` will become ambiguous in Rust 2021 |
| 28 | + --> $DIR/future-prelude-collision.rs:66:18 |
| 29 | + | |
| 30 | +LL | let _: u32 = (&3u8).try_into().unwrap(); |
| 31 | + | ^^^^^^^^^^^^^^^^^ help: disambiguate the associated function: `TryIntoU32::try_into(*(&3u8))` |
| 32 | + |
| 33 | +warning: trait method `try_into` will become ambiguous in Rust 2021 |
| 34 | + --> $DIR/future-prelude-collision.rs:70:18 |
| 35 | + | |
| 36 | +LL | let _: u32 = 3.0.try_into().unwrap(); |
| 37 | + | ^^^^^^^^^^^^^^ help: disambiguate the associated function: `TryIntoU32::try_into(&3.0)` |
| 38 | + |
| 39 | +warning: 6 warnings emitted |
28 | 40 |
|
0 commit comments