]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/immutable-arg.rs
Merge commit '3e4179766bcecd712824da04356621b8df012ea4' into sync-from-clippy
[rust.git] / src / test / ui / borrowck / immutable-arg.rs
1 fn foo(_x: u32) {
2     _x = 4;
3     //~^ ERROR cannot assign to immutable argument `_x`
4 }
5
6 fn main() {}