summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/match-arm-without-braces.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/parser/match-arm-without-braces.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/parser/match-arm-without-braces.stderr')
-rw-r--r--src/test/ui/parser/match-arm-without-braces.stderr131
1 files changed, 131 insertions, 0 deletions
diff --git a/src/test/ui/parser/match-arm-without-braces.stderr b/src/test/ui/parser/match-arm-without-braces.stderr
new file mode 100644
index 000000000..37d55aa53
--- /dev/null
+++ b/src/test/ui/parser/match-arm-without-braces.stderr
@@ -0,0 +1,131 @@
+error: `match` arm body without braces
+ --> $DIR/match-arm-without-braces.rs:26:27
+ |
+LL | Some(Val::Foo) => 3;
+ | -- ^- help: use a comma to end a `match` arm expression: `,`
+ | | |
+ | | this statement is not surrounded by a body
+ | while parsing the `match` arm starting here
+
+error: `match` arm body without braces
+ --> $DIR/match-arm-without-braces.rs:31:11
+ |
+LL | Some(Val::Foo) =>
+ | -- while parsing the `match` arm starting here
+LL | / 7;
+LL | | 8;
+ | |____________^ these statements are not surrounded by a body
+ |
+help: surround the statements with a body
+ |
+LL ~ { 7;
+LL ~ 8; }
+ |
+
+error: `match` arm body without braces
+ --> $DIR/match-arm-without-braces.rs:37:11
+ |
+LL | Some(Val::Foo) =>
+ | -- while parsing the `match` arm starting here
+LL | / 11;
+LL | | 12;
+ | |_____________^ these statements are not surrounded by a body
+ |
+help: surround the statements with a body
+ |
+LL ~ { 11;
+LL ~ 12; }
+ |
+
+error: `match` arm body without braces
+ --> $DIR/match-arm-without-braces.rs:44:11
+ |
+LL | Some(Val::Foo) =>
+ | -- while parsing the `match` arm starting here
+LL | / 14;
+LL | | 15;
+ | |_____________^ these statements are not surrounded by a body
+ |
+help: surround the statements with a body
+ |
+LL ~ { 14;
+LL ~ 15; }
+ |
+
+error: expected `,` following `match` arm
+ --> $DIR/match-arm-without-braces.rs:48:29
+ |
+LL | Some(Val::Foo) => 17
+ | ^ help: missing a comma here to end this `match` arm: `,`
+
+error: `match` arm body without braces
+ --> $DIR/match-arm-without-braces.rs:53:11
+ |
+LL | Some(Val::Foo) =>
+ | -- while parsing the `match` arm starting here
+LL | / 20;
+LL | | 21
+ | |____________^ these statements are not surrounded by a body
+ |
+help: surround the statements with a body
+ |
+LL ~ { 20;
+LL ~ 21 }
+ |
+
+error: `match` arm body without braces
+ --> $DIR/match-arm-without-braces.rs:59:11
+ |
+LL | Some(Val::Foo) =>
+ | -- while parsing the `match` arm starting here
+LL | / 24;
+LL | | 25
+ | |____________^ these statements are not surrounded by a body
+ |
+help: surround the statements with a body
+ |
+LL ~ { 24;
+LL ~ 25 }
+ |
+
+error: `match` arm body without braces
+ --> $DIR/match-arm-without-braces.rs:66:11
+ |
+LL | Some(Val::Foo) =>
+ | -- while parsing the `match` arm starting here
+LL | / 27;
+LL | | 28
+ | |____________^ these statements are not surrounded by a body
+ |
+help: surround the statements with a body
+ |
+LL ~ { 27;
+LL ~ 28 }
+ |
+
+error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
+ --> $DIR/match-arm-without-braces.rs:71:13
+ |
+LL | Some(Val::Foo) =>
+ | -- while parsing the `match` arm starting here
+LL | 30;
+ | ^ expected one of `,`, `.`, `?`, `}`, or an operator
+
+error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
+ --> $DIR/match-arm-without-braces.rs:77:13
+ |
+LL | Some(Val::Foo) =>
+ | -- while parsing the `match` arm starting here
+LL | 34;
+ | ^ expected one of `,`, `.`, `?`, `}`, or an operator
+
+error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;`
+ --> $DIR/match-arm-without-braces.rs:84:13
+ |
+LL | Some(Val::Foo) =>
+ | -- while parsing the `match` arm starting here
+LL | 37;
+ | ^ expected one of `,`, `.`, `?`, `}`, or an operator
+
+error: aborting due to 11 previous errors
+