]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/require-parens-for-chained-comparison.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / parser / require-parens-for-chained-comparison.stderr
CommitLineData
dfeec247 1error: comparison operators cannot be chained
0731742a 2 --> $DIR/require-parens-for-chained-comparison.rs:5:11
0bf4aa26
XL
3 |
4LL | false == false == false;
ba9703b0
XL
5 | ^^ ^^
6 |
7help: split the comparison into two
8 |
9LL | false == false && false == false;
10 | ^^^^^^^^
0bf4aa26 11
dfeec247 12error: comparison operators cannot be chained
ba9703b0 13 --> $DIR/require-parens-for-chained-comparison.rs:9:11
0bf4aa26
XL
14 |
15LL | false == 0 < 2;
ba9703b0
XL
16 | ^^ ^
17 |
18help: parenthesize the comparison
19 |
20LL | false == (0 < 2);
21 | ^ ^
0bf4aa26 22
dfeec247 23error: comparison operators cannot be chained
0731742a 24 --> $DIR/require-parens-for-chained-comparison.rs:13:6
0bf4aa26
XL
25 |
26LL | f<X>();
ba9703b0 27 | ^ ^
0bf4aa26 28 |
29967ef6 29help: use `::<...>` instead of `<...>` to specify type or const arguments
e74abb32
XL
30 |
31LL | f::<X>();
32 | ^^
33
dfeec247 34error: comparison operators cannot be chained
e74abb32
XL
35 --> $DIR/require-parens-for-chained-comparison.rs:17:6
36 |
37LL | f<Result<Option<X>, Option<Option<X>>>(1, 2);
ba9703b0 38 | ^ ^
dfeec247 39 |
29967ef6 40help: use `::<...>` instead of `<...>` to specify type or const arguments
e74abb32
XL
41 |
42LL | f::<Result<Option<X>, Option<Option<X>>>(1, 2);
43 | ^^
44
dfeec247 45error: comparison operators cannot be chained
ba9703b0 46 --> $DIR/require-parens-for-chained-comparison.rs:22:21
e74abb32
XL
47 |
48LL | let _ = identity<u8>;
ba9703b0 49 | ^ ^
e74abb32 50 |
29967ef6 51 = help: use `::<...>` instead of `<...>` to specify type or const arguments
0bf4aa26
XL
52 = help: or use `(...)` if you meant to specify fn arguments
53
ba9703b0 54error: aborting due to 5 previous errors
0bf4aa26 55