summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/brace-in-let-chain.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:25:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:25:56 +0000
commit018c4950b9406055dec02ef0fb52f132e2bb1e2c (patch)
treea835ebdf2088ef88fa681f8fad45f09922c1ae9a /tests/ui/parser/brace-in-let-chain.stderr
parentAdding debian version 1.75.0+dfsg1-5. (diff)
downloadrustc-018c4950b9406055dec02ef0fb52f132e2bb1e2c.tar.xz
rustc-018c4950b9406055dec02ef0fb52f132e2bb1e2c.zip
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/parser/brace-in-let-chain.stderr')
-rw-r--r--tests/ui/parser/brace-in-let-chain.stderr65
1 files changed, 65 insertions, 0 deletions
diff --git a/tests/ui/parser/brace-in-let-chain.stderr b/tests/ui/parser/brace-in-let-chain.stderr
new file mode 100644
index 000000000..7182d86d0
--- /dev/null
+++ b/tests/ui/parser/brace-in-let-chain.stderr
@@ -0,0 +1,65 @@
+error: this file contains an unclosed delimiter
+ --> $DIR/brace-in-let-chain.rs:58:54
+ |
+LL | fn main() {
+ | - unclosed delimiter
+...
+LL | fn quux() {
+ | - unclosed delimiter
+...
+LL | fn foobar() {
+ | - unclosed delimiter
+...
+LL | fn fubar() {
+ | - unclosed delimiter
+...
+LL | fn qux() {
+ | - unclosed delimiter
+...
+LL | fn foo() {
+ | - unclosed delimiter
+...
+LL | fn bar() {
+ | - unclosed delimiter
+...
+LL | fn baz() {
+ | - unclosed delimiter
+LL | if false {
+LL | {
+ | - this delimiter might not be properly closed...
+LL | && let () = ()
+LL | }
+ | - ...as it matches this but it has different indentation
+LL | }
+ | ^
+
+error: found a `{` in the middle of a let-chain
+ --> $DIR/brace-in-let-chain.rs:14:24
+ |
+LL | && let () = () {
+ | ^
+LL | && let () = ()
+ | ------ you might have meant to continue the let-chain here
+ |
+help: consider removing this brace to parse the `let` as part of the same chain
+ |
+LL - && let () = () {
+LL + && let () = ()
+ |
+
+error: found a `{` in the middle of a let-chain
+ --> $DIR/brace-in-let-chain.rs:6:24
+ |
+LL | && let () = () {
+ | ^
+LL | && let () = ()
+ | ------ you might have meant to continue the let-chain here
+ |
+help: consider removing this brace to parse the `let` as part of the same chain
+ |
+LL - && let () = () {
+LL + && let () = ()
+ |
+
+error: aborting due to 3 previous errors
+