]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/require-parens-for-chained-comparison.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / parser / require-parens-for-chained-comparison.stderr
CommitLineData
0bf4aa26 1error: chained comparison operators require parentheses
0731742a 2 --> $DIR/require-parens-for-chained-comparison.rs:5:11
0bf4aa26
XL
3 |
4LL | false == false == false;
e74abb32 5 | ^^^^^^^^^^^
0bf4aa26
XL
6
7error: chained comparison operators require parentheses
0731742a 8 --> $DIR/require-parens-for-chained-comparison.rs:8:11
0bf4aa26
XL
9 |
10LL | false == 0 < 2;
e74abb32 11 | ^^^^^^
0bf4aa26
XL
12
13error: chained comparison operators require parentheses
0731742a 14 --> $DIR/require-parens-for-chained-comparison.rs:13:6
0bf4aa26
XL
15 |
16LL | f<X>();
e74abb32 17 | ^^^
0bf4aa26 18 |
e74abb32
XL
19help: use `::<...>` instead of `<...>` to specify type arguments
20 |
21LL | f::<X>();
22 | ^^
23
24error: chained comparison operators require parentheses
25 --> $DIR/require-parens-for-chained-comparison.rs:17:6
26 |
27LL | f<Result<Option<X>, Option<Option<X>>>(1, 2);
28 | ^^^^^^^^
29 |
30help: use `::<...>` instead of `<...>` to specify type arguments
31 |
32LL | f::<Result<Option<X>, Option<Option<X>>>(1, 2);
33 | ^^
34
35error: chained comparison operators require parentheses
36 --> $DIR/require-parens-for-chained-comparison.rs:22:21
37 |
38LL | 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
44error[E0308]: mismatched types
45 --> $DIR/require-parens-for-chained-comparison.rs:8:14
46 |
47LL | false == 0 < 2;
60c5eb7d 48 | ^ expected `bool`, found integer
0731742a
XL
49
50error[E0308]: mismatched types
51 --> $DIR/require-parens-for-chained-comparison.rs:8:18
52 |
53LL | false == 0 < 2;
60c5eb7d 54 | ^ expected `bool`, found integer
0731742a 55
e74abb32 56error: aborting due to 7 previous errors
0bf4aa26 57
e1599b0c 58For more information about this error, try `rustc --explain E0308`.