adjust to currently used style

This commit is contained in:
kud1ing 2014-02-19 22:38:15 +01:00
parent 1228fb0c99
commit 4ad57513f4
4 changed files with 7 additions and 7 deletions

View File

@ -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))
}
}
}

View File

@ -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() {}

View File

@ -25,8 +25,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!();

View File

@ -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
}
}