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