rust/tests/ui/borrowck/immutable-arg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
102 B
Rust
Raw Normal View History

fn foo(_x: u32) {
_x = 4;
2019-05-02 17:34:15 -05:00
//~^ ERROR cannot assign to immutable argument `_x`
}
fn main() {}