@@ -2,7 +2,7 @@ error[E0433]: failed to resolve: use of undeclared type `TryFrom`
2
2
--> $DIR/suggest-tryinto-edition-change.rs:11:19
3
3
|
4
4
LL | let _i: i16 = TryFrom::try_from(0_i32).unwrap();
5
- | ^^^^^^^ not found in this scope
5
+ | ^^^^^^^ use of undeclared type `TryFrom`
6
6
|
7
7
= note: 'std::convert::TryFrom' is included in the prelude starting in Edition 2021
8
8
= 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`
17
17
--> $DIR/suggest-tryinto-edition-change.rs:17:19
18
18
|
19
19
LL | let _i: i16 = TryInto::try_into(0_i32).unwrap();
20
- | ^^^^^^^ not found in this scope
20
+ | ^^^^^^^ use of undeclared type `TryInto`
21
21
|
22
22
= note: 'std::convert::TryInto' is included in the prelude starting in Edition 2021
23
23
= 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`
32
32
--> $DIR/suggest-tryinto-edition-change.rs:23:22
33
33
|
34
34
LL | 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`
41
36
|
42
37
= note: 'std::iter::FromIterator' is included in the prelude starting in Edition 2021
43
38
= note: 'core::iter::FromIterator' is included in the prelude starting in Edition 2021
0 commit comments