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

12 lines
473 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-14 09:12:50 +08:00
| -------------- help: use a mutable reference instead: `ref mut my_ref @ _`
2018-06-01 21:03:24 +08:00
LL | *my_ref = 0; //~ ERROR cannot assign to immutable borrowed content `*my_ref` [E0594]
2018-05-31 23:00:58 +08:00
| ^^^^^^^^^^^ cannot borrow as mutable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0594`.