2015-01-08 21:54:35 +11:00
|
|
|
fn f(y: Box<isize>) {
|
2019-04-22 08:40:08 +01:00
|
|
|
*y = 5; //~ ERROR cannot assign
|
2013-01-22 23:33:44 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
fn g() {
|
2019-04-22 08:40:08 +01:00
|
|
|
let _frob = |q: Box<isize>| { *q = 2; }; //~ ERROR cannot assign
|
2013-01-22 23:33:44 -08:00
|
|
|
}
|
|
|
|
|
2013-02-14 11:47:00 -08:00
|
|
|
fn main() {}
|