File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1152,7 +1152,7 @@ impl<TYPER:Typer> MemCategorizationContext<TYPER> {
1152
1152
format ! ( "captured outer variable" )
1153
1153
}
1154
1154
_ => {
1155
- format ! ( "dereference of {} pointer" , ptr_sigil( pk) )
1155
+ format ! ( "dereference of `{}`- pointer" , ptr_sigil( pk) )
1156
1156
}
1157
1157
}
1158
1158
}
Original file line number Diff line number Diff line change 11
11
fn with ( f: |& ~str|) { }
12
12
13
13
fn arg_item ( & _x: & ~str ) { }
14
- //~^ ERROR cannot move out of dereference of & pointer
14
+ //~^ ERROR cannot move out of dereference of `&`- pointer
15
15
16
16
fn arg_closure ( ) {
17
17
with ( |& _x| ( ) )
18
- //~^ ERROR cannot move out of dereference of & pointer
18
+ //~^ ERROR cannot move out of dereference of `&`- pointer
19
19
}
20
20
21
21
fn let_pat ( ) {
22
22
let & _x = & ~"hi";
23
- //~^ ERROR cannot move out of dereference of & pointer
23
+ //~^ ERROR cannot move out of dereference of `&`- pointer
24
24
}
25
25
26
26
pub fn main ( ) { }
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ pub fn main() {
25
25
[ _, ..tail] => {
26
26
match tail {
27
27
[ Foo { string : a } , Foo { string : b } ] => {
28
- //~^ ERROR cannot move out of dereference of & pointer
29
- //~^^ ERROR cannot move out of dereference of & pointer
28
+ //~^ ERROR cannot move out of dereference of `&`- pointer
29
+ //~^^ ERROR cannot move out of dereference of `&`- pointer
30
30
}
31
31
_ => {
32
32
unreachable ! ( ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ trait parse {
18
18
19
19
impl parse for parser {
20
20
fn parse ( & self ) -> ~[ int ] {
21
- self . tokens //~ ERROR cannot move out of dereference of & pointer
21
+ self . tokens //~ ERROR cannot move out of dereference of `&`- pointer
22
22
}
23
23
}
24
24
You can’t perform that action at this time.
0 commit comments