3585c64d09
find src -name '*.rs' | xargs sed -i '' 's/~~~.*{\.rust}/```rust/g' find src -name '*.rs' | xargs sed -i '' 's/ ~~~$/ ```/g' find src -name '*.rs' | xargs sed -i '' 's/^~~~$/ ```/g'
17 lines
330 B
Rust
17 lines
330 B
Rust
fn with(f: &fn(&~str)) {}
|
|
|
|
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
|
|
}
|
|
|
|
pub fn main() {}
|