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

12 lines
439 B
Plaintext
Raw Normal View History

2018-06-03 04:06:21 +00:00
error[E0594]: cannot assign to data in a `&` reference
2018-06-14 01:12:50 +00:00
--> $DIR/issue-51244.rs:15:5
2018-06-03 04:06:21 +00:00
|
LL | let ref my_ref @ _ = 0;
| -------------- help: consider changing this to be a mutable reference: `&mut ef my_ref @ _`
2018-06-14 01:12:50 +00:00
LL | *my_ref = 0; //~ ERROR cannot assign to data in a `&` reference [E0594]
2018-06-03 04:06:21 +00:00
| ^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0594`.