summaryrefslogtreecommitdiffstats
path: root/tests/ui/borrowck/immutable-arg.rs
blob: 2352d1bbe64565b78ab09e265a842878825e4fe5 (plain)
1
2
3
4
5
6
fn foo(_x: u32) {
    _x = 4;
    //~^ ERROR cannot assign to immutable argument `_x`
}

fn main() {}