summary refs log tree commit diff
path: root/src/test/ui/issues/issue-51244.rs
blob: 509060e1ad81bbed5acee50f2555f81b93ace98a (plain)
1
2
3
4
fn main() {
    let ref my_ref @ _ = 0;
    *my_ref = 0; //~ ERROR cannot assign to `*my_ref` which is behind a `&` reference [E0594]
}