]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2021/future-prelude-collision-shadow.stderr
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[rust.git] / src / test / ui / rust-2021 / future-prelude-collision-shadow.stderr
1 error[E0599]: no method named `try_into` found for type `u8` in the current scope
2   --> $DIR/future-prelude-collision-shadow.rs:27:26
3    |
4 LL |         let _: u32 = 3u8.try_into().unwrap();
5    |                          ^^^^^^^^ method not found in `u8`
6    |
7    = help: items from traits can only be used if the trait is in scope
8    = note: 'std::convert::TryInto' is included in the prelude starting in Edition 2021
9 help: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
10    |
11 LL |     use crate::m::TryIntoU32;
12    |
13 LL |     use std::convert::TryInto;
14    |
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0599`.