]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/match-arm-without-braces.stderr
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / match-arm-without-braces.stderr
1 error: `match` arm body without braces
2   --> $DIR/match-arm-without-braces.rs:26:27
3    |
4 LL |         Some(Val::Foo) => 3;
5    |                        -- ^- help: use a comma to end a `match` arm expression: `,`
6    |                        |  |
7    |                        |  this statement is not surrounded by a body
8    |                        while parsing the `match` arm starting here
9
10 error: `match` arm body without braces
11   --> $DIR/match-arm-without-braces.rs:31:11
12    |
13 LL |           Some(Val::Foo) =>
14    |                          -- while parsing the `match` arm starting here
15 LL | /           7;
16 LL | |           8;
17    | |____________^ these statements are not surrounded by a body
18    |
19 help: surround the statements with a body
20    |
21 LL ~           { 7;
22 LL ~           8; }
23    |
24
25 error: `match` arm body without braces
26   --> $DIR/match-arm-without-braces.rs:37:11
27    |
28 LL |           Some(Val::Foo) =>
29    |                          -- while parsing the `match` arm starting here
30 LL | /           11;
31 LL | |           12;
32    | |_____________^ these statements are not surrounded by a body
33    |
34 help: surround the statements with a body
35    |
36 LL ~           { 11;
37 LL ~           12; }
38    |
39
40 error: `match` arm body without braces
41   --> $DIR/match-arm-without-braces.rs:44:11
42    |
43 LL |           Some(Val::Foo) =>
44    |                          -- while parsing the `match` arm starting here
45 LL | /           14;
46 LL | |           15;
47    | |_____________^ these statements are not surrounded by a body
48    |
49 help: surround the statements with a body
50    |
51 LL ~           { 14;
52 LL ~           15; }
53    |
54
55 error: expected `,` following `match` arm
56   --> $DIR/match-arm-without-braces.rs:48:29
57    |
58 LL |         Some(Val::Foo) => 17
59    |                             ^ help: missing a comma here to end this `match` arm: `,`
60
61 error: `match` arm body without braces
62   --> $DIR/match-arm-without-braces.rs:53:11
63    |
64 LL |           Some(Val::Foo) =>
65    |                          -- while parsing the `match` arm starting here
66 LL | /           20;
67 LL | |           21
68    | |____________^ these statements are not surrounded by a body
69    |
70 help: surround the statements with a body
71    |
72 LL ~           { 20;
73 LL ~           21 }
74    |
75
76 error: `match` arm body without braces
77   --> $DIR/match-arm-without-braces.rs:59:11
78    |
79 LL |           Some(Val::Foo) =>
80    |                          -- while parsing the `match` arm starting here
81 LL | /           24;
82 LL | |           25
83    | |____________^ these statements are not surrounded by a body
84    |
85 help: surround the statements with a body
86    |
87 LL ~           { 24;
88 LL ~           25 }
89    |
90
91 error: `match` arm body without braces
92   --> $DIR/match-arm-without-braces.rs:66:11
93    |
94 LL |           Some(Val::Foo) =>
95    |                          -- while parsing the `match` arm starting here
96 LL | /           27;
97 LL | |           28
98    | |____________^ these statements are not surrounded by a body
99    |
100 help: surround the statements with a body
101    |
102 LL ~           { 27;
103 LL ~           28 }
104    |
105
106 error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
107   --> $DIR/match-arm-without-braces.rs:71:13
108    |
109 LL |         Some(Val::Foo) =>
110    |                        -- while parsing the `match` arm starting here
111 LL |           30;
112    |             ^ expected one of `,`, `.`, `?`, `}`, or an operator
113
114 error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
115   --> $DIR/match-arm-without-braces.rs:77:13
116    |
117 LL |         Some(Val::Foo) =>
118    |                        -- while parsing the `match` arm starting here
119 LL |           34;
120    |             ^ expected one of `,`, `.`, `?`, `}`, or an operator
121
122 error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
123   --> $DIR/match-arm-without-braces.rs:84:13
124    |
125 LL |         Some(Val::Foo) =>
126    |                        -- while parsing the `match` arm starting here
127 LL |           37;
128    |             ^ expected one of `,`, `.`, `?`, `}`, or an operator
129
130 error: aborting due to 11 previous errors
131