]> git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/issue-51244.rs
New upstream version 1.55.0+dfsg1
[rustc.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 }