summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/brace-in-let-chain.stderr
blob: 7182d86d001d026272272f1d6461c5eb240d2293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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