summaryrefslogtreecommitdiffstats
path: root/tests/ui/or-patterns/multiple-pattern-typo.stderr
blob: b0a82b3673b83f3f329e513518d209d95be6c10d (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
error: unexpected token `||` in pattern
  --> $DIR/multiple-pattern-typo.rs:7:15
   |
LL |         1 | 2 || 3 => (),
   |         -     ^^ help: use a single `|` to separate multiple alternative patterns: `|`
   |         |
   |         while parsing this or-pattern starting here

error: unexpected token `||` in pattern
  --> $DIR/multiple-pattern-typo.rs:12:16
   |
LL |         (1 | 2 || 3) => (),
   |          -     ^^ help: use a single `|` to separate multiple alternative patterns: `|`
   |          |
   |          while parsing this or-pattern starting here

error: unexpected token `||` in pattern
  --> $DIR/multiple-pattern-typo.rs:17:16
   |
LL |         (1 | 2 || 3,) => (),
   |          -     ^^ help: use a single `|` to separate multiple alternative patterns: `|`
   |          |
   |          while parsing this or-pattern starting here

error: unexpected token `||` in pattern
  --> $DIR/multiple-pattern-typo.rs:24:18
   |
LL |         TS(1 | 2 || 3) => (),
   |            -     ^^ help: use a single `|` to separate multiple alternative patterns: `|`
   |            |
   |            while parsing this or-pattern starting here

error: unexpected token `||` in pattern
  --> $DIR/multiple-pattern-typo.rs:31:23
   |
LL |         NS { f: 1 | 2 || 3 } => (),
   |                 -     ^^ help: use a single `|` to separate multiple alternative patterns: `|`
   |                 |
   |                 while parsing this or-pattern starting here

error: unexpected token `||` in pattern
  --> $DIR/multiple-pattern-typo.rs:36:16
   |
LL |         [1 | 2 || 3] => (),
   |          -     ^^ help: use a single `|` to separate multiple alternative patterns: `|`
   |          |
   |          while parsing this or-pattern starting here

error: unexpected token `||` in pattern
  --> $DIR/multiple-pattern-typo.rs:41:9
   |
LL |         || 1 | 2 | 3 => (),
   |         ^^ help: use a single `|` to separate multiple alternative patterns: `|`

error: aborting due to 7 previous errors