blob: cc8914ef3a6f701fbed20e654fdd45521291a794 (
plain)
1
2
3
4
5
6
7
8
9
|
error[E0389]: cannot assign to data in a `&` reference
--> $DIR/E0389.rs:8:5
|
LL | fancy_ref.num = 6; //~ ERROR E0389
| ^^^^^^^^^^^^^^^^^ assignment into an immutable reference
error: aborting due to previous error
For more information about this error, try `rustc --explain E0389`.
|