4 #![warn(rust_2021_prelude_collisions)]
5 #![allow(unreachable_code)]
15 fn try_into(self, _: u8);
20 impl MyTry<i32> for S {
21 fn try_into(self, _: u8) {}
24 trait TryFromU8: Sized {
28 impl TryFromU8 for u32 {
39 foo!().try_into(todo!());
40 //~^ WARNING trait method `try_into` will become ambiguous in Rust 2021
41 //~| WARNING this is accepted in the current edition
42 <bar!()>::try_from(0);
43 //~^ WARNING trait-associated function `try_from` will become ambiguous in Rust 2021
44 //~| WARNING this is accepted in the current edition