1
1
error[E0433]: failed to resolve: use of undeclared type `TryFrom`
2
- --> $DIR/suggest-tryinto-edition-change.rs:14 :30
2
+ --> $DIR/suggest-tryinto-edition-change.rs:16 :30
3
3
|
4
4
LL | let _i: Result<i16, _> = TryFrom::try_from(0_i32);
5
5
| ^^^^^^^ not found in this scope
@@ -11,7 +11,7 @@ LL | use core::convert::TryFrom;
11
11
|
12
12
13
13
error[E0433]: failed to resolve: use of undeclared type `TryInto`
14
- --> $DIR/suggest-tryinto-edition-change.rs:19 :30
14
+ --> $DIR/suggest-tryinto-edition-change.rs:21 :30
15
15
|
16
16
LL | let _i: Result<i16, _> = TryInto::try_into(0_i32);
17
17
| ^^^^^^^ not found in this scope
@@ -23,7 +23,7 @@ LL | use core::convert::TryInto;
23
23
|
24
24
25
25
error[E0433]: failed to resolve: use of undeclared type `FromIterator`
26
- --> $DIR/suggest-tryinto-edition-change.rs:24 :18
26
+ --> $DIR/suggest-tryinto-edition-change.rs:26 :18
27
27
|
28
28
LL | let _i: () = FromIterator::from_iter(core::iter::empty());
29
29
| ^^^^^^^^^^^^
@@ -44,7 +44,7 @@ LL | use core::iter::FromIterator;
44
44
|
45
45
46
46
error[E0599]: no method named `try_into` found for type `i32` in the current scope
47
- --> $DIR/suggest-tryinto-edition-change.rs:9 :36
47
+ --> $DIR/suggest-tryinto-edition-change.rs:11 :36
48
48
|
49
49
LL | let _i: Result<i16, _> = 0_i32.try_into();
50
50
| ^^^^^^^^ method not found in `i32`
0 commit comments