rust/tests/ui/parser/brace-in-let-chain.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-11-10 02:46:45 +00:00
error: this file contains an unclosed delimiter
2023-11-10 20:13:53 +00:00
--> $DIR/brace-in-let-chain.rs:58:54
2023-11-10 02:46:45 +00:00
|
LL | fn main() {
| - unclosed delimiter
...
2023-11-10 20:13:53 +00:00
LL | fn quux() {
| - unclosed delimiter
...
LL | fn foobar() {
| - unclosed delimiter
...
LL | fn fubar() {
| - unclosed delimiter
...
2023-11-10 04:04:55 +00:00
LL | fn qux() {
| - unclosed delimiter
...
2023-11-10 02:46:45 +00:00
LL | fn foo() {
| - another 3 unclosed delimiters begin from here
2023-11-10 02:46:45 +00:00
...
LL | {
| - this delimiter might not be properly closed...
LL | && let () = ()
LL | }
| - ...as it matches this but it has different indentation
LL | }
| ^
2023-11-10 02:46:45 +00:00
2023-11-10 20:13:53 +00:00
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
|
2023-11-10 20:13:53 +00:00
help: consider removing this brace to parse the `let` as part of the same chain
|
LL - && let () = () {
LL + && let () = ()
|
2023-11-10 02:46:45 +00:00
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
|
2023-11-10 02:46:45 +00:00
help: consider removing this brace to parse the `let` as part of the same chain
|
LL - && let () = () {
LL + && let () = ()
|
2023-11-10 20:13:53 +00:00
error: aborting due to 3 previous errors
2023-11-10 02:46:45 +00:00