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