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