about summary refs log tree commit diff
path: root/tests/ui/parser/or-in-let-chain.edition2021.stderr
blob: a97095cc3b82e8388c1ffff5f7bf200f92c72be8 (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
error: `||` operators are not supported in let chain conditions
  --> $DIR/or-in-let-chain.rs:6:24
   |
LL |     if let true = true || false {}
   |                        ^^

error: expected expression, found `let` statement
  --> $DIR/or-in-let-chain.rs:9:9
   |
LL |     if (let true = true) || false {}
   |         ^^^^^^^^^^^^^^^
   |
   = note: only supported directly in conditions of `if` and `while` expressions

error: `||` operators are not supported in let chain conditions
  --> $DIR/or-in-let-chain.rs:12:24
   |
LL |     if let true = true || false || true {}
   |                        ^^

error: `||` operators are not supported in let chain conditions
  --> $DIR/or-in-let-chain.rs:15:33
   |
LL |     if let true = true && false || true {}
   |                                 ^^

error: aborting due to 4 previous errors