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 one of `,`, `.`, `?`, `}`, or an operator, found reserved identifier `_`
56 --> $DIR/match-arm-without-braces.rs:49:9
58 LL | Some(Val::Foo) => 17
59 | -- - expected one of `,`, `.`, `?`, `}`, or an operator
61 | while parsing the `match` arm starting here
65 error: `match` arm body without braces
66 --> $DIR/match-arm-without-braces.rs:53:11
68 LL | Some(Val::Foo) =>
69 | -- while parsing the `match` arm starting here
72 | |____________^ these statements are not surrounded by a body
74 help: surround the statements with a body
80 error: `match` arm body without braces
81 --> $DIR/match-arm-without-braces.rs:59:11
83 LL | Some(Val::Foo) =>
84 | -- while parsing the `match` arm starting here
87 | |____________^ these statements are not surrounded by a body
89 help: surround the statements with a body
95 error: `match` arm body without braces
96 --> $DIR/match-arm-without-braces.rs:66:11
98 LL | Some(Val::Foo) =>
99 | -- while parsing the `match` arm starting here
102 | |____________^ these statements are not surrounded by a body
104 help: surround the statements with a body
110 error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
111 --> $DIR/match-arm-without-braces.rs:71:13
113 LL | Some(Val::Foo) =>
114 | -- while parsing the `match` arm starting here
116 | ^ expected one of `,`, `.`, `?`, `}`, or an operator
118 error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
119 --> $DIR/match-arm-without-braces.rs:77:13
121 LL | Some(Val::Foo) =>
122 | -- while parsing the `match` arm starting here
124 | ^ expected one of `,`, `.`, `?`, `}`, or an operator
126 error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
127 --> $DIR/match-arm-without-braces.rs:84:13
129 LL | Some(Val::Foo) =>
130 | -- while parsing the `match` arm starting here
132 | ^ expected one of `,`, `.`, `?`, `}`, or an operator
134 error: aborting due to 11 previous errors