2023-03-22 00:52:24 -05:00
|
|
|
error[E0277]: the trait bound `Foo: Into<_>` is not satisfied
|
|
|
|
--> $DIR/issue-109436.rs:12:22
|
|
|
|
|
|
|
|
|
LL | let b: Bar = foo.into();
|
2023-04-16 06:12:37 -05:00
|
|
|
| ^^^^ the trait `Into<_>` is not implemented for `Foo`
|
2023-03-22 00:52:24 -05:00
|
|
|
|
|
|
|
|
= note: required for `Foo` to implement `Into<Bar>`
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | let b: Bar = (&foo).into();
|
|
|
|
| ++ +
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-03-22 00:52:24 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|