2021-06-19 22:42:24 +00:00
|
|
|
error[E0599]: no method named `try_into` found for type `u8` in the current scope
|
2021-06-21 14:58:10 +00:00
|
|
|
--> $DIR/future-prelude-collision-shadow.rs:27:26
|
2021-06-19 22:42:24 +00:00
|
|
|
|
|
|
|
|
LL | let _: u32 = 3u8.try_into().unwrap();
|
2024-02-10 03:33:20 +00:00
|
|
|
| ^^^^^^^^
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2021-06-19 22:42:24 +00:00
|
|
|
= help: items from traits can only be used if the trait is in scope
|
2021-10-25 01:09:52 +00:00
|
|
|
= note: 'std::convert::TryInto' is included in the prelude starting in Edition 2021
|
2024-02-13 23:05:23 +00:00
|
|
|
help: the following traits which provide `try_into` are implemented but not in scope; perhaps you want to import one of them
|
2021-08-26 18:17:19 +00:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use crate::m::TryIntoU32;
|
2021-08-26 18:17:19 +00:00
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + use std::convert::TryInto;
|
2021-08-26 18:17:19 +00:00
|
|
|
|
|
2024-02-14 18:23:01 +00:00
|
|
|
help: there is a method `into` with a similar name
|
2024-02-10 03:33:20 +00:00
|
|
|
|
|
|
|
|
LL | let _: u32 = 3u8.into().unwrap();
|
|
|
|
| ~~~~
|
2021-06-19 22:42:24 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-06-19 22:42:24 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|