@@ -4,48 +4,48 @@ error[E0433]: failed to resolve: use of undeclared type `TryFrom`
44LL | let _i: i16 = TryFrom::try_from(0_i32).unwrap();
55 | ^^^^^^^ use of undeclared type `TryFrom`
66 |
7- = note: 'core::convert::TryFrom' is included in the prelude starting in Edition 2021
87 = note: 'std::convert::TryFrom' is included in the prelude starting in Edition 2021
8+ = note: 'core::convert::TryFrom' is included in the prelude starting in Edition 2021
99help: consider importing one of these items
1010 |
11- LL + use core::convert::TryFrom;
12- |
1311LL + use std::convert::TryFrom;
1412 |
13+ LL + use core::convert::TryFrom;
14+ |
1515
1616error[E0433]: failed to resolve: use of undeclared type `TryInto`
1717 --> $DIR/suggest-tryinto-edition-change.rs:16:19
1818 |
1919LL | let _i: i16 = TryInto::try_into(0_i32).unwrap();
2020 | ^^^^^^^ use of undeclared type `TryInto`
2121 |
22- = note: 'core::convert::TryInto' is included in the prelude starting in Edition 2021
2322 = note: 'std::convert::TryInto' is included in the prelude starting in Edition 2021
23+ = note: 'core::convert::TryInto' is included in the prelude starting in Edition 2021
2424help: consider importing one of these items
2525 |
26- LL + use core::convert::TryInto;
27- |
2826LL + use std::convert::TryInto;
2927 |
28+ LL + use core::convert::TryInto;
29+ |
3030
3131error[E0433]: failed to resolve: use of undeclared type `FromIterator`
3232 --> $DIR/suggest-tryinto-edition-change.rs:22:22
3333 |
3434LL | let _v: Vec<_> = FromIterator::from_iter(&[1]);
3535 | ^^^^^^^^^^^^ use of undeclared type `FromIterator`
3636 |
37- = note: 'core::iter::FromIterator' is included in the prelude starting in Edition 2021
3837 = note: 'std::iter::FromIterator' is included in the prelude starting in Edition 2021
38+ = note: 'core::iter::FromIterator' is included in the prelude starting in Edition 2021
3939help: a trait with a similar name exists
4040 |
4141LL | let _v: Vec<_> = IntoIterator::from_iter(&[1]);
4242 | ~~~~~~~~~~~~
4343help: consider importing one of these items
4444 |
45- LL + use core::iter::FromIterator;
46- |
4745LL + use std::iter::FromIterator;
4846 |
47+ LL + use core::iter::FromIterator;
48+ |
4949
5050error[E0599]: no method named `try_into` found for type `i32` in the current scope
5151 --> $DIR/suggest-tryinto-edition-change.rs:6:25
0 commit comments