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