2013-11-19 18:34:19 -06:00
|
|
|
fn with(f: |&~str|) {}
|
2013-06-20 14:11:47 -05:00
|
|
|
|
|
|
|
fn arg_item(&_x: &~str) {}
|
|
|
|
//~^ ERROR cannot move out of dereference of & pointer
|
|
|
|
|
|
|
|
fn arg_closure() {
|
|
|
|
with(|&_x| ())
|
|
|
|
//~^ ERROR cannot move out of dereference of & pointer
|
|
|
|
}
|
|
|
|
|
|
|
|
fn let_pat() {
|
|
|
|
let &_x = &~"hi";
|
|
|
|
//~^ ERROR cannot move out of dereference of & pointer
|
|
|
|
}
|
|
|
|
|
2013-09-23 19:20:36 -05:00
|
|
|
pub fn main() {}
|