mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
16 lines
485 B
Plaintext
16 lines
485 B
Plaintext
error[E0277]: the trait bound `Foo: Into<_>` is not satisfied
|
|
--> $DIR/issue-109436.rs:12:22
|
|
|
|
|
LL | let b: Bar = foo.into();
|
|
| ^^^^ the trait `Into<_>` is not implemented for `Foo`
|
|
|
|
|
= note: required for `Foo` to implement `Into<Bar>`
|
|
help: consider borrowing here
|
|
|
|
|
LL | let b: Bar = (&foo).into();
|
|
| ++ +
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|