summary refs log tree commit diff
path: root/src/test/ui/issues/issue-50687-ice-on-borrow.stderr
blob: f6adfc87dad33ff496eb5501514dc259746f39f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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`.