]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2497-if-let-chains/syntax-ambiguity-2015.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / rfc-2497-if-let-chains / syntax-ambiguity-2015.stderr
1 error: ambiguous use of `&&`
2   --> $DIR/syntax-ambiguity-2015.rs:10:47
3    |
4 LL |     if let Range { start: _, end: _ } = true..true && false { }
5    |                                               ^^^^^^^^^^^^^ help: consider adding parentheses: `(true && false)`
6    |
7    = note: this will be a error until the `let_chains` feature is stabilized
8    = note: see rust-lang/rust#53668 for more information
9
10 error: ambiguous use of `||`
11   --> $DIR/syntax-ambiguity-2015.rs:13:47
12    |
13 LL |     if let Range { start: _, end: _ } = true..true || false { }
14    |                                               ^^^^^^^^^^^^^ help: consider adding parentheses: `(true || false)`
15    |
16    = note: this will be a error until the `let_chains` feature is stabilized
17    = note: see rust-lang/rust#53668 for more information
18
19 error: ambiguous use of `&&`
20   --> $DIR/syntax-ambiguity-2015.rs:16:50
21    |
22 LL |     while let Range { start: _, end: _ } = true..true && false { }
23    |                                                  ^^^^^^^^^^^^^ help: consider adding parentheses: `(true && false)`
24    |
25    = note: this will be a error until the `let_chains` feature is stabilized
26    = note: see rust-lang/rust#53668 for more information
27
28 error: ambiguous use of `||`
29   --> $DIR/syntax-ambiguity-2015.rs:19:50
30    |
31 LL |     while let Range { start: _, end: _ } = true..true || false { }
32    |                                                  ^^^^^^^^^^^^^ help: consider adding parentheses: `(true || false)`
33    |
34    = note: this will be a error until the `let_chains` feature is stabilized
35    = note: see rust-lang/rust#53668 for more information
36
37 error: ambiguous use of `&&`
38   --> $DIR/syntax-ambiguity-2015.rs:22:19
39    |
40 LL |     if let true = false && false { }
41    |                   ^^^^^^^^^^^^^^ help: consider adding parentheses: `(false && false)`
42    |
43    = note: this will be a error until the `let_chains` feature is stabilized
44    = note: see rust-lang/rust#53668 for more information
45
46 error: ambiguous use of `&&`
47   --> $DIR/syntax-ambiguity-2015.rs:25:22
48    |
49 LL |     while let true = (1 == 2) && false { }
50    |                      ^^^^^^^^^^^^^^^^^ help: consider adding parentheses: `((1 == 2) && false)`
51    |
52    = note: this will be a error until the `let_chains` feature is stabilized
53    = note: see rust-lang/rust#53668 for more information
54
55 error: aborting due to 6 previous errors
56