2 #![warn(rust_2021_prelude_collisions)]
4 #![allow(unused_imports)]
8 fn try_into(self) -> Result<u32, ()>;
11 impl TryIntoU32 for u8 {
12 fn try_into(self) -> Result<u32, ()> {
17 pub trait AnotherTrick {}
21 use crate::m::AnotherTrick as TryIntoU32;
25 // Here, `TryIntoU32` is imported but shadowed, but in that case we don't permit its methods
27 let _: u32 = 3u8.try_into().unwrap();
28 //~^ ERROR no method named `try_into` found for type `u8` in the current scope