summary refs log tree commit diff
path: root/tests/ui/parser/pat-recover-wildcards.stderr
blob: 2b0c9bbc5be86e3322870f7dbd32357d10fd26b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
error: expected one of `=>`, `if`, or `|`, found `+`
  --> $DIR/pat-recover-wildcards.rs:5:11
   |
LL |         _ + 1 => ()
   |           ^ expected one of `=>`, `if`, or `|`

error: expected one of `)`, `,`, or `|`, found `%`
  --> $DIR/pat-recover-wildcards.rs:11:12
   |
LL |         (_ % 4) => ()
   |            ^ expected one of `)`, `,`, or `|`

error: expected one of `=>`, `if`, or `|`, found `.`
  --> $DIR/pat-recover-wildcards.rs:17:10
   |
LL |         _.x() => ()
   |          ^ expected one of `=>`, `if`, or `|`

error: expected one of `=>`, `if`, or `|`, found `..=`
  --> $DIR/pat-recover-wildcards.rs:23:10
   |
LL |         _..=4 => ()
   |          ^^^ expected one of `=>`, `if`, or `|`

error: expected one of `=>`, `if`, or `|`, found reserved identifier `_`
  --> $DIR/pat-recover-wildcards.rs:29:11
   |
LL |         .._ => ()
   |           ^ expected one of `=>`, `if`, or `|`

error[E0586]: inclusive range with no end
  --> $DIR/pat-recover-wildcards.rs:35:10
   |
LL |         0..._ => ()
   |          ^^^ help: use `..` instead
   |
   = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)

error: expected one of `=>`, `if`, or `|`, found reserved identifier `_`
  --> $DIR/pat-recover-wildcards.rs:35:13
   |
LL |         0..._ => ()
   |             ^ expected one of `=>`, `if`, or `|`

error: expected one of `)`, `,`, or `|`, found `*`
  --> $DIR/pat-recover-wildcards.rs:43:12
   |
LL |         (_ * 0)..5 => ()
   |            ^ expected one of `)`, `,`, or `|`

error: expected one of `=>`, `if`, or `|`, found `(`
  --> $DIR/pat-recover-wildcards.rs:49:11
   |
LL |         ..(_) => ()
   |           ^ expected one of `=>`, `if`, or `|`

error: expected a pattern range bound, found an expression
  --> $DIR/pat-recover-wildcards.rs:55:14
   |
LL |         4..=(2 + _) => ()
   |              ^^^^^ arbitrary expressions are not allowed in patterns

error: range pattern bounds cannot have parentheses
  --> $DIR/pat-recover-wildcards.rs:55:13
   |
LL |         4..=(2 + _) => ()
   |             ^     ^
   |
help: remove these parentheses
   |
LL -         4..=(2 + _) => ()
LL +         4..=2 + _ => ()
   |

error: aborting due to 11 previous errors

For more information about this error, try `rustc --explain E0586`.