summaryrefslogtreecommitdiffstats
path: root/tests/ui/binop/binary-op-suggest-deref.stderr
blob: d1d0089ece795d461ae525ce16941d901980b403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0308]: mismatched types
  --> $DIR/binary-op-suggest-deref.rs:6:12
   |
LL |     if i < 0 {}
   |            ^ expected `&i64`, found integer
   |
help: consider dereferencing the borrow
   |
LL |     if *i < 0 {}
   |        +

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.