auto merge of #12405 : kud1ing/rust/backticks, r=huonw
This commit is contained in:
commit
1366e04cf4
@ -1152,7 +1152,7 @@ impl<TYPER:Typer> MemCategorizationContext<TYPER> {
|
||||
format!("captured outer variable")
|
||||
}
|
||||
_ => {
|
||||
format!("dereference of {} pointer", ptr_sigil(pk))
|
||||
format!("dereference of `{}`-pointer", ptr_sigil(pk))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -11,16 +11,16 @@
|
||||
fn with(f: |&~str|) {}
|
||||
|
||||
fn arg_item(&_x: &~str) {}
|
||||
//~^ ERROR cannot move out of dereference of & pointer
|
||||
//~^ ERROR cannot move out of dereference of `&`-pointer
|
||||
|
||||
fn arg_closure() {
|
||||
with(|&_x| ())
|
||||
//~^ ERROR cannot move out of dereference of & pointer
|
||||
//~^ ERROR cannot move out of dereference of `&`-pointer
|
||||
}
|
||||
|
||||
fn let_pat() {
|
||||
let &_x = &~"hi";
|
||||
//~^ ERROR cannot move out of dereference of & pointer
|
||||
//~^ ERROR cannot move out of dereference of `&`-pointer
|
||||
}
|
||||
|
||||
pub fn main() {}
|
||||
|
@ -26,8 +26,8 @@ pub fn main() {
|
||||
[_, ..tail] => {
|
||||
match tail {
|
||||
[Foo { string: a }, Foo { string: b }] => {
|
||||
//~^ ERROR cannot move out of dereference of & pointer
|
||||
//~^^ ERROR cannot move out of dereference of & pointer
|
||||
//~^ ERROR cannot move out of dereference of `&`-pointer
|
||||
//~^^ ERROR cannot move out of dereference of `&`-pointer
|
||||
}
|
||||
_ => {
|
||||
unreachable!();
|
||||
|
@ -18,7 +18,7 @@ trait parse {
|
||||
|
||||
impl parse for parser {
|
||||
fn parse(&self) -> ~[int] {
|
||||
self.tokens //~ ERROR cannot move out of dereference of & pointer
|
||||
self.tokens //~ ERROR cannot move out of dereference of `&`-pointer
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user