1 error: `match` arm body without braces
2 --> $DIR/match-arm-without-braces.rs:26:27
4 LL | Some(Val::Foo) => 3;
5 | -- ^- help: use a comma to end a `match` arm expression: `,`
7 | | this statement is not surrounded by a body
8 | while parsing the `match` arm starting here
10 error: `match` arm body without braces
11 --> $DIR/match-arm-without-braces.rs:31:11
13 LL | Some(Val::Foo) =>
14 | -- while parsing the `match` arm starting here
17 | |____________^ these statements are not surrounded by a body
19 help: surround the statements with a body
25 error: `match` arm body without braces
26 --> $DIR/match-arm-without-braces.rs:37:11
28 LL | Some(Val::Foo) =>
29 | -- while parsing the `match` arm starting here
32 | |_____________^ these statements are not surrounded by a body
34 help: surround the statements with a body
40 error: `match` arm body without braces
41 --> $DIR/match-arm-without-braces.rs:44:11
43 LL | Some(Val::Foo) =>
44 | -- while parsing the `match` arm starting here
47 | |_____________^ these statements are not surrounded by a body
49 help: surround the statements with a body
55 error: expected `,` following `match` arm
56 --> $DIR/match-arm-without-braces.rs:48:29
58 LL | Some(Val::Foo) => 17
59 | ^ help: missing a comma here to end this `match` arm: `,`
61 error: `match` arm body without braces
62 --> $DIR/match-arm-without-braces.rs:53:11
64 LL | Some(Val::Foo) =>
65 | -- while parsing the `match` arm starting here
68 | |____________^ these statements are not surrounded by a body
70 help: surround the statements with a body
76 error: `match` arm body without braces
77 --> $DIR/match-arm-without-braces.rs:59:11
79 LL | Some(Val::Foo) =>
80 | -- while parsing the `match` arm starting here
83 | |____________^ these statements are not surrounded by a body
85 help: surround the statements with a body
91 error: `match` arm body without braces
92 --> $DIR/match-arm-without-braces.rs:66:11
94 LL | Some(Val::Foo) =>
95 | -- while parsing the `match` arm starting here
98 | |____________^ these statements are not surrounded by a body
100 help: surround the statements with a body
106 error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
107 --> $DIR/match-arm-without-braces.rs:71:13
109 LL | Some(Val::Foo) =>
110 | -- while parsing the `match` arm starting here
112 | ^ expected one of `,`, `.`, `?`, `}`, or an operator
114 error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
115 --> $DIR/match-arm-without-braces.rs:77:13
117 LL | Some(Val::Foo) =>
118 | -- while parsing the `match` arm starting here
120 | ^ expected one of `,`, `.`, `?`, `}`, or an operator
122 error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
123 --> $DIR/match-arm-without-braces.rs:84:13
125 LL | Some(Val::Foo) =>
126 | -- while parsing the `match` arm starting here
128 | ^ expected one of `,`, `.`, `?`, `}`, or an operator
130 error: aborting due to 11 previous errors