fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: because of the numeric bounds on `u8` prior to casting, this expression is always false 2 --> $DIR/invalid_upcast_comparisons.rs:21:5 3 | 4LL | (u8 as u32) > 300; 5 | ^^^^^^^^^^^^^^^^^ 6 | 7 = note: `-D clippy::invalid-upcast-comparisons` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::invalid_upcast_comparisons)]` 9 10error: because of the numeric bounds on `u8` prior to casting, this expression is always false 11 --> $DIR/invalid_upcast_comparisons.rs:24:5 12 | 13LL | (u8 as i32) > 300; 14 | ^^^^^^^^^^^^^^^^^ 15 16error: because of the numeric bounds on `u8` prior to casting, this expression is always false 17 --> $DIR/invalid_upcast_comparisons.rs:26:5 18 | 19LL | (u8 as u32) == 300; 20 | ^^^^^^^^^^^^^^^^^^ 21 22error: because of the numeric bounds on `u8` prior to casting, this expression is always false 23 --> $DIR/invalid_upcast_comparisons.rs:28:5 24 | 25LL | (u8 as i32) == 300; 26 | ^^^^^^^^^^^^^^^^^^ 27 28error: because of the numeric bounds on `u8` prior to casting, this expression is always false 29 --> $DIR/invalid_upcast_comparisons.rs:30:5 30 | 31LL | 300 < (u8 as u32); 32 | ^^^^^^^^^^^^^^^^^ 33 34error: because of the numeric bounds on `u8` prior to casting, this expression is always false 35 --> $DIR/invalid_upcast_comparisons.rs:32:5 36 | 37LL | 300 < (u8 as i32); 38 | ^^^^^^^^^^^^^^^^^ 39 40error: because of the numeric bounds on `u8` prior to casting, this expression is always false 41 --> $DIR/invalid_upcast_comparisons.rs:34:5 42 | 43LL | 300 == (u8 as u32); 44 | ^^^^^^^^^^^^^^^^^^ 45 46error: because of the numeric bounds on `u8` prior to casting, this expression is always false 47 --> $DIR/invalid_upcast_comparisons.rs:36:5 48 | 49LL | 300 == (u8 as i32); 50 | ^^^^^^^^^^^^^^^^^^ 51 52error: because of the numeric bounds on `u8` prior to casting, this expression is always true 53 --> $DIR/invalid_upcast_comparisons.rs:39:5 54 | 55LL | (u8 as u32) <= 300; 56 | ^^^^^^^^^^^^^^^^^^ 57 58error: because of the numeric bounds on `u8` prior to casting, this expression is always true 59 --> $DIR/invalid_upcast_comparisons.rs:41:5 60 | 61LL | (u8 as i32) <= 300; 62 | ^^^^^^^^^^^^^^^^^^ 63 64error: because of the numeric bounds on `u8` prior to casting, this expression is always true 65 --> $DIR/invalid_upcast_comparisons.rs:43:5 66 | 67LL | (u8 as u32) != 300; 68 | ^^^^^^^^^^^^^^^^^^ 69 70error: because of the numeric bounds on `u8` prior to casting, this expression is always true 71 --> $DIR/invalid_upcast_comparisons.rs:45:5 72 | 73LL | (u8 as i32) != 300; 74 | ^^^^^^^^^^^^^^^^^^ 75 76error: because of the numeric bounds on `u8` prior to casting, this expression is always true 77 --> $DIR/invalid_upcast_comparisons.rs:47:5 78 | 79LL | 300 >= (u8 as u32); 80 | ^^^^^^^^^^^^^^^^^^ 81 82error: because of the numeric bounds on `u8` prior to casting, this expression is always true 83 --> $DIR/invalid_upcast_comparisons.rs:49:5 84 | 85LL | 300 >= (u8 as i32); 86 | ^^^^^^^^^^^^^^^^^^ 87 88error: because of the numeric bounds on `u8` prior to casting, this expression is always true 89 --> $DIR/invalid_upcast_comparisons.rs:51:5 90 | 91LL | 300 != (u8 as u32); 92 | ^^^^^^^^^^^^^^^^^^ 93 94error: because of the numeric bounds on `u8` prior to casting, this expression is always true 95 --> $DIR/invalid_upcast_comparisons.rs:53:5 96 | 97LL | 300 != (u8 as i32); 98 | ^^^^^^^^^^^^^^^^^^ 99 100error: because of the numeric bounds on `u8` prior to casting, this expression is always false 101 --> $DIR/invalid_upcast_comparisons.rs:57:5 102 | 103LL | (u8 as i32) < 0; 104 | ^^^^^^^^^^^^^^^ 105 106error: because of the numeric bounds on `u8` prior to casting, this expression is always true 107 --> $DIR/invalid_upcast_comparisons.rs:59:5 108 | 109LL | -5 != (u8 as i32); 110 | ^^^^^^^^^^^^^^^^^ 111 112error: because of the numeric bounds on `u8` prior to casting, this expression is always true 113 --> $DIR/invalid_upcast_comparisons.rs:62:5 114 | 115LL | (u8 as i32) >= 0; 116 | ^^^^^^^^^^^^^^^^ 117 118error: because of the numeric bounds on `u8` prior to casting, this expression is always false 119 --> $DIR/invalid_upcast_comparisons.rs:64:5 120 | 121LL | -5 == (u8 as i32); 122 | ^^^^^^^^^^^^^^^^^ 123 124error: because of the numeric bounds on `u8` prior to casting, this expression is always false 125 --> $DIR/invalid_upcast_comparisons.rs:68:5 126 | 127LL | 1337 == (u8 as i32); 128 | ^^^^^^^^^^^^^^^^^^^ 129 130error: because of the numeric bounds on `u8` prior to casting, this expression is always false 131 --> $DIR/invalid_upcast_comparisons.rs:70:5 132 | 133LL | 1337 == (u8 as u32); 134 | ^^^^^^^^^^^^^^^^^^^ 135 136error: because of the numeric bounds on `u8` prior to casting, this expression is always true 137 --> $DIR/invalid_upcast_comparisons.rs:73:5 138 | 139LL | 1337 != (u8 as i32); 140 | ^^^^^^^^^^^^^^^^^^^ 141 142error: because of the numeric bounds on `u8` prior to casting, this expression is always true 143 --> $DIR/invalid_upcast_comparisons.rs:75:5 144 | 145LL | 1337 != (u8 as u32); 146 | ^^^^^^^^^^^^^^^^^^^ 147 148error: because of the numeric bounds on `u8` prior to casting, this expression is always true 149 --> $DIR/invalid_upcast_comparisons.rs:90:5 150 | 151LL | (u8 as i32) > -1; 152 | ^^^^^^^^^^^^^^^^ 153 154error: because of the numeric bounds on `u8` prior to casting, this expression is always false 155 --> $DIR/invalid_upcast_comparisons.rs:92:5 156 | 157LL | (u8 as i32) < -1; 158 | ^^^^^^^^^^^^^^^^ 159 160error: because of the numeric bounds on `u8` prior to casting, this expression is always false 161 --> $DIR/invalid_upcast_comparisons.rs:109:5 162 | 163LL | -5 >= (u8 as i32); 164 | ^^^^^^^^^^^^^^^^^ 165 166error: aborting due to 27 previous errors 167