summary refs log tree commit diff
path: root/src/test/ui/issue-51244.stderr
blob: 997a74295e565a68fea8ae287f4bbe48d15d66eb (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0594]: cannot assign to immutable borrowed content `*my_ref`
  --> $DIR/issue-51244.rs:13:5
   |
LL |     let ref my_ref @ _ = 0;
   |         -------------- help: use a mutable reference instead: `ref mut my_ref @ _`
LL |     *my_ref = 0; //~ ERROR cannot assign to immutable borrowed content `*my_ref` [E0594]
   |     ^^^^^^^^^^^ cannot borrow as mutable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0594`.