17 lines
554 B
Plaintext
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`.
|