]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-50687-ice-on-borrow.stderr
Auto merge of #78066 - bugadani:wat, r=jonas-schievink
[rust.git] / src / test / ui / issues / issue-50687-ice-on-borrow.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-50687-ice-on-borrow.rs:40:17
3    |
4 LL |     let _: () = Borrow::borrow(&owned);
5    |            --   ^^^^^^^^^^^^^^^^^^^^^^
6    |            |    |
7    |            |    expected `()`, found reference
8    |            |    help: consider dereferencing the borrow: `*Borrow::borrow(&owned)`
9    |            expected due to this
10    |
11    = note: expected unit type `()`
12               found reference `&_`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0308`.