2018-02-07 19:35:35 -08:00
|
|
|
error[E0389]: cannot assign to data in a `&` reference
|
|
|
|
--> $DIR/E0389.rs:18:5
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fancy_ref.num = 6; //~ ERROR E0389
|
2018-02-07 19:35:35 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^ assignment into an immutable reference
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0389`.
|