]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-51244.rs
Auto merge of #105121 - oli-obk:simpler-cheaper-dump_mir, r=nnethercote
[rust.git] / src / test / ui / nll / issue-51244.rs
1 fn main() {
2     let ref my_ref @ _ = 0;
3     *my_ref = 0;
4     //~^ ERROR cannot assign to `*my_ref`, which is behind a `&` reference [E0594]
5 }