rust/src/test/ui/suggestions/issue-51244.stderr

12 lines
366 B
Plaintext
Raw Normal View History

2018-05-31 23:00:58 +08:00
error[E0594]: cannot assign to immutable borrowed content `*my_ref`
--> $DIR/issue-51244.rs:13:5
|
LL | let ref my_ref @ _ = 0;
2018-06-01 12:08:31 +08:00
| --- consider changing this to `ref mut`
2018-05-31 23:00:58 +08:00
LL | *my_ref = 0;
| ^^^^^^^^^^^ cannot borrow as mutable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0594`.