rust/tests/ui/suggestions/issue-109436.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
485 B
Plaintext
Raw Normal View History

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 11:12:37 +00:00
| ^^^^ 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`.