@@ -2,7 +2,7 @@ error[E0433]: failed to resolve: use of undeclared type `TryFrom`
22 --> $DIR/suggest-tryinto-edition-change.rs:11:19
33 |
44LL | let _i: i16 = TryFrom::try_from(0_i32).unwrap();
5- | ^^^^^^^ not found in this scope
5+ | ^^^^^^^ use of undeclared type `TryFrom`
66 |
77 = note: 'std::convert::TryFrom' is included in the prelude starting in Edition 2021
88 = note: 'core::convert::TryFrom' is included in the prelude starting in Edition 2021
@@ -17,7 +17,7 @@ error[E0433]: failed to resolve: use of undeclared type `TryInto`
1717 --> $DIR/suggest-tryinto-edition-change.rs:17:19
1818 |
1919LL | let _i: i16 = TryInto::try_into(0_i32).unwrap();
20- | ^^^^^^^ not found in this scope
20+ | ^^^^^^^ use of undeclared type `TryInto`
2121 |
2222 = note: 'std::convert::TryInto' is included in the prelude starting in Edition 2021
2323 = note: 'core::convert::TryInto' is included in the prelude starting in Edition 2021
@@ -32,12 +32,7 @@ error[E0433]: failed to resolve: use of undeclared type `FromIterator`
3232 --> $DIR/suggest-tryinto-edition-change.rs:23:22
3333 |
3434LL | let _v: Vec<_> = FromIterator::from_iter(&[1]);
35- | ^^^^^^^^^^^^
36- |
37- ::: $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
38- |
39- LL | pub trait IntoIterator {
40- | ---------------------- similarly named trait `IntoIterator` defined here
35+ | ^^^^^^^^^^^^ use of undeclared type `FromIterator`
4136 |
4237 = note: 'std::iter::FromIterator' is included in the prelude starting in Edition 2021
4338 = note: 'core::iter::FromIterator' is included in the prelude starting in Edition 2021
0 commit comments