fn f(y: Box) { *y = 5; //~ ERROR cannot assign } fn g() { let _frob = |q: Box| { *q = 2; }; //~ ERROR cannot assign } fn main() {}