2013-11-19 16:34:19 -08:00
|
|
|
fn with(f: |&~str|) {}
|
2013-06-20 15:11:47 -04: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 17:20:36 -07:00
|
|
|
pub fn main() {}
|