2012-05-10 21:58:23 -05:00
|
|
|
fn take(-_v: ~int) {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn box_imm() {
|
|
|
|
let v = ~3;
|
2012-06-30 06:23:59 -05:00
|
|
|
let _w = &v; //~ NOTE loan of immutable local variable granted here
|
2012-09-19 00:44:46 -05:00
|
|
|
take(move v); //~ ERROR moving out of immutable local variable prohibited due to outstanding loan
|
2012-05-10 21:58:23 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|