]>
Commit | Line | Data |
---|---|---|
0bf4aa26 | 1 | error: chained comparison operators require parentheses |
0731742a | 2 | --> $DIR/require-parens-for-chained-comparison.rs:5:11 |
0bf4aa26 XL |
3 | | |
4 | LL | false == false == false; | |
e74abb32 | 5 | | ^^^^^^^^^^^ |
0bf4aa26 XL |
6 | |
7 | error: chained comparison operators require parentheses | |
0731742a | 8 | --> $DIR/require-parens-for-chained-comparison.rs:8:11 |
0bf4aa26 XL |
9 | | |
10 | LL | false == 0 < 2; | |
e74abb32 | 11 | | ^^^^^^ |
0bf4aa26 XL |
12 | |
13 | error: chained comparison operators require parentheses | |
0731742a | 14 | --> $DIR/require-parens-for-chained-comparison.rs:13:6 |
0bf4aa26 XL |
15 | | |
16 | LL | f<X>(); | |
e74abb32 | 17 | | ^^^ |
0bf4aa26 | 18 | | |
e74abb32 XL |
19 | help: use `::<...>` instead of `<...>` to specify type arguments |
20 | | | |
21 | LL | f::<X>(); | |
22 | | ^^ | |
23 | ||
24 | error: chained comparison operators require parentheses | |
25 | --> $DIR/require-parens-for-chained-comparison.rs:17:6 | |
26 | | | |
27 | LL | f<Result<Option<X>, Option<Option<X>>>(1, 2); | |
28 | | ^^^^^^^^ | |
29 | | | |
30 | help: use `::<...>` instead of `<...>` to specify type arguments | |
31 | | | |
32 | LL | f::<Result<Option<X>, Option<Option<X>>>(1, 2); | |
33 | | ^^ | |
34 | ||
35 | error: chained comparison operators require parentheses | |
36 | --> $DIR/require-parens-for-chained-comparison.rs:22:21 | |
37 | | | |
38 | LL | let _ = identity<u8>; | |
39 | | ^^^^ | |
40 | | | |
41 | = help: use `::<...>` instead of `<...>` to specify type arguments | |
0bf4aa26 XL |
42 | = help: or use `(...)` if you meant to specify fn arguments |
43 | ||
0731742a XL |
44 | error[E0308]: mismatched types |
45 | --> $DIR/require-parens-for-chained-comparison.rs:8:14 | |
46 | | | |
47 | LL | false == 0 < 2; | |
60c5eb7d | 48 | | ^ expected `bool`, found integer |
0731742a XL |
49 | |
50 | error[E0308]: mismatched types | |
51 | --> $DIR/require-parens-for-chained-comparison.rs:8:18 | |
52 | | | |
53 | LL | false == 0 < 2; | |
60c5eb7d | 54 | | ^ expected `bool`, found integer |
0731742a | 55 | |
e74abb32 | 56 | error: aborting due to 7 previous errors |
0bf4aa26 | 57 | |
e1599b0c | 58 | For more information about this error, try `rustc --explain E0308`. |