11error[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
33 |
44LL | let _i: Result<i16, _> = TryFrom::try_from(0_i32);
55 | ^^^^^^^ not found in this scope
@@ -11,7 +11,7 @@ LL | use core::convert::TryFrom;
1111 |
1212
1313error[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
1515 |
1616LL | let _i: Result<i16, _> = TryInto::try_into(0_i32);
1717 | ^^^^^^^ not found in this scope
@@ -23,7 +23,7 @@ LL | use core::convert::TryInto;
2323 |
2424
2525error[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
2727 |
2828LL | let _i: () = FromIterator::from_iter(core::iter::empty());
2929 | ^^^^^^^^^^^^
@@ -44,7 +44,7 @@ LL | use core::iter::FromIterator;
4444 |
4545
4646error[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
4848 |
4949LL | let _i: Result<i16, _> = 0_i32.try_into();
5050 | ^^^^^^^^ method not found in `i32`
0 commit comments