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