summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/brace-in-let-chain.stderr
diff options
context:
space:
mode:
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
+