rust/src/test/ui/issues/issue-50687-ice-on-borrow.stderr
2020-05-25 09:23:00 +02:00

17 lines
554 B
Plaintext

error[E0308]: mismatched types
--> $DIR/issue-50687-ice-on-borrow.rs:40:17
|
LL | let _: () = Borrow::borrow(&owned);
| -- ^^^^^^^^^^^^^^^^^^^^^^
| | |
| | expected `()`, found reference
| | help: consider dereferencing the borrow: `*Borrow::borrow(&owned)`
| expected due to this
|
= note: expected unit type `()`
found reference `&_`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.