]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-51244.rs
Rollup merge of #60685 - dtolnay:spdx, r=nikomatsakis
[rust.git] / src / test / ui / nll / issue-51244.rs
1 #![feature(nll)]
2
3 fn main() {
4     let ref my_ref @ _ = 0;
5     *my_ref = 0;
6     //~^ ERROR cannot assign to `*my_ref` which is behind a `&` reference [E0594]
7 }