summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/assign-non-lval-needs-deref.stderr
blob: ee83b1453213174c3a6ce07e8c8bd6e05a753959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0067]: invalid left-hand side of assignment
  --> $DIR/assign-non-lval-needs-deref.rs:15:16
   |
LL |     (&mut Foo) += ();
   |     ---------- ^^
   |     |
   |     cannot assign to this expression
   |
help: consider dereferencing the left-hand side of this operation
   |
LL |     *(&mut Foo) += ();
   |     +

error: aborting due to previous error

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