summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0389.stderr
blob: e085329bac508cc0fd8142b09d9977e3348c2340 (plain)
1
2
3
4
5
6
7
8
error[E0389]: cannot assign to data in a `&` reference
  --> $DIR/E0389.rs:18:5
   |
18 |     fancy_ref.num = 6; //~ ERROR E0389
   |     ^^^^^^^^^^^^^^^^^ assignment into an immutable reference

error: aborting due to previous error