]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/immutable-arg.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / 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() {}