fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
288 B15 linesraw
1#[allow(clippy::no_effect, clippy::unnecessary_operation)]
2#[warn(clippy::int_plus_one)]
3fn main() {
4    let x = 1i32;
5    let y = 0i32;
6
7    let _ = x > y;
8    let _ = y < x;
9
10    let _ = x > y;
11    let _ = y < x;
12
13    let _ = x > y; // should be ok
14    let _ = y < x; // should be ok
15}