summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-109436.stderr
blob: 48518b33d12ac36c36afbe8c8cd7459db83a760a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0277]: the trait bound `Foo: Into<_>` is not satisfied
  --> $DIR/issue-109436.rs:12:22
   |
LL |     let b: Bar = foo.into();
   |                      ^^^^ the trait `~const 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 previous error

For more information about this error, try `rustc --explain E0277`.