summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-103381.stderr
blob: 85fcc18e76b57f385122ad764f9a5a23332e54d8 (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
error: unexpected `if` in the condition expression
  --> $DIR/issue-103381.rs:9:12
   |
LL |     if b && if let Some(x) = x {}
   |            ^^^^
   |
help: remove the `if`
   |
LL -     if b && if let Some(x) = x {}
LL +     if b && let Some(x) = x {}
   |

error: unexpected `if` in the condition expression
  --> $DIR/issue-103381.rs:14:12
   |
LL |     if b && if let None = x {}
   |            ^^^^
   |
help: remove the `if`
   |
LL -     if b && if let None = x {}
LL +     if b && let None = x {}
   |

error: unexpected `if` in the condition expression
  --> $DIR/issue-103381.rs:19:15
   |
LL |     if true && if true { true } else { false };
   |               ^^^^
   |
help: remove the `if`
   |
LL -     if true && if true { true } else { false };
LL +     if true && true { true } else { false };
   |

error: unexpected `if` in the condition expression
  --> $DIR/issue-103381.rs:24:15
   |
LL |     if true && if false { true } else { false };
   |               ^^^^
   |
help: remove the `if`
   |
LL -     if true && if false { true } else { false };
LL +     if true && false { true } else { false };
   |

error: aborting due to 4 previous errors