os-rust/src/test/ui/nll/issue-47388.stderr

12 lines
455 B
Text
Raw Normal View History

2018-03-11 00:25:23 +05:30
error[E0594]: cannot assign through `&`-reference `fancy_ref`
--> $DIR/issue-47388.rs:18:5
|
LL | let fancy_ref = &(&mut fancy);
| ------------- help: consider changing this to be a mutable reference: `&mut`
2018-04-06 23:03:20 +05:30
LL | fancy_ref.num = 6; //~ ERROR E0594
2018-03-11 00:25:23 +05:30
| ^^^^^^^^^^^^^^^^^ cannot assign through `&`-reference
error: aborting due to previous error
2018-04-06 20:04:07 +05:30
For more information about this error, try `rustc --explain E0594`.