fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error: comparison operators cannot be chained 2 --> $DIR/require-parens-for-chained-comparison.rs:5:11 3 | 4LL | false == false == false; 5 | ^^^^^^^^^^^ 6 7error: comparison operators cannot be chained 8 --> $DIR/require-parens-for-chained-comparison.rs:8:11 9 | 10LL | false == 0 < 2; 11 | ^^^^^^ 12 13error: comparison operators cannot be chained 14 --> $DIR/require-parens-for-chained-comparison.rs:13:6 15 | 16LL | f<X>(); 17 | ^^^ 18 | 19help: use `::<...>` instead of `<...>` to specify type arguments 20 | 21LL | f::<X>(); 22 | ^^ 23 24error: comparison operators cannot be chained 25 --> $DIR/require-parens-for-chained-comparison.rs:17:6 26 | 27LL | f<Result<Option<X>, Option<Option<X>>>(1, 2); 28 | ^^^^^^^^ 29 | 30help: split the comparison into two... 31 | 32LL | f < Result && Result <Option<X>, Option<Option<X>>>(1, 2); 33 | ^^^^^^^^^^^^^^^^^^^^^^ 34help: ...or parenthesize one of the comparisons 35 | 36LL | (f < Result) <Option<X>, Option<Option<X>>>(1, 2); 37 | ^^^^^^^^^^^^^^ 38help: use `::<...>` instead of `<...>` to specify type arguments 39 | 40LL | f::<Result<Option<X>, Option<Option<X>>>(1, 2); 41 | ^^ 42 43error: comparison operators cannot be chained 44 --> $DIR/require-parens-for-chained-comparison.rs:24:21 45 | 46LL | let _ = identity<u8>; 47 | ^^^^ 48 | 49 = help: use `::<...>` instead of `<...>` to specify type arguments 50 = help: or use `(...)` if you meant to specify fn arguments 51 52error[E0308]: mismatched types 53 --> $DIR/require-parens-for-chained-comparison.rs:8:14 54 | 55LL | false == 0 < 2; 56 | ^ expected `bool`, found integer 57 58error[E0308]: mismatched types 59 --> $DIR/require-parens-for-chained-comparison.rs:8:18 60 | 61LL | false == 0 < 2; 62 | ^ expected `bool`, found integer 63 64error: aborting due to 7 previous errors 65 66For more information about this error, try `rustc --explain E0308`.