File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2381,7 +2381,8 @@ impl<'a> State<'a> {
2381
2381
}
2382
2382
self . print_ident ( ident) ;
2383
2383
if let Some ( ref p) = * sub {
2384
- self . s . word ( "@" ) ;
2384
+ self . s . space ( ) ;
2385
+ self . s . word_space ( "@" ) ;
2385
2386
self . print_pat ( p) ;
2386
2387
}
2387
2388
}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ fn main() {
15
15
//~| pattern on the left, should be on the right
16
16
//~| binding on the right, should be on the left
17
17
//~| HELP switch the order
18
- //~| SUGGESTION y@ Some(x)
18
+ //~| SUGGESTION y @ Some(x)
19
19
_ => { }
20
20
}
21
21
@@ -34,7 +34,7 @@ fn main() {
34
34
//~| pattern on the left, should be on the right
35
35
//~| binding on the right, should be on the left
36
36
//~| HELP switch the order
37
- //~| SUGGESTION e@ 1 ..=5
37
+ //~| SUGGESTION e @ 1 ..=5
38
38
_ => { }
39
39
}
40
40
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ LL | Some(x) @ y => {}
6
6
| | |
7
7
| | binding on the right, should be on the left
8
8
| pattern on the left, should be on the right
9
- | help: switch the order: `y@ Some(x)`
9
+ | help: switch the order: `y @ Some(x)`
10
10
11
11
error: left-hand side of `@` must be a binding
12
12
--> $DIR/intersection-patterns.rs:23:9
@@ -27,7 +27,7 @@ LL | 1 ..= 5 @ e => {}
27
27
| | |
28
28
| | binding on the right, should be on the left
29
29
| pattern on the left, should be on the right
30
- | help: switch the order: `e@ 1 ..=5`
30
+ | help: switch the order: `e @ 1 ..=5`
31
31
32
32
error: aborting due to 3 previous errors
33
33
You can’t perform that action at this time.
0 commit comments