]> git.lizzy.rs Git - rust.git/blob - src/test/ui/immut-function-arguments.rs
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.git] / src / test / ui / immut-function-arguments.rs
1 fn f(y: Box<isize>) {
2     *y = 5; //~ ERROR cannot assign
3 }
4
5 fn g() {
6     let _frob = |q: Box<isize>| { *q = 2; }; //~ ERROR cannot assign
7 }
8
9 fn main() {}