about summary refs log tree commit diff
path: root/tests/ui/parser/match-arm-comma-typo-issue-140991.stderr
blob: 19532d14245d1351b18192de579fdc9cb8fa9e4e (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
error: expected one of `(`, `,`, `.`, `::`, `?`, `}`, or an operator, found `=>`
  --> $DIR/match-arm-comma-typo-issue-140991.rs:11:11
   |
LL |         Y => X,
   |           ^^ expected one of 7 possible tokens
   |
help: you might have meant to write a `,` to end this `match` arm
   |
LL -         X => Y.
LL +         X => Y,
   |

error: expected one of `!`, `,`, `.`, `::`, `?`, `{`, `}`, or an operator, found `=>`
  --> $DIR/match-arm-comma-typo-issue-140991.rs:19:11
   |
LL |         Y => X,
   |           ^^ expected one of 8 possible tokens
   |
help: you might have meant to write a `,` to end this `match` arm
   |
LL -         X => Y/
LL +         X => Y,
   |

error: aborting due to 2 previous errors