fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: range endpoint is out of range for `u8` 2 --> $DIR/lint-range-endpoint-overflow.rs:4:19 3 | 4LL | let range_a = 0..256; 5 | ^^^^^^ help: use an inclusive range instead: `0..=255` 6 | 7note: the lint level is defined here 8 --> $DIR/lint-range-endpoint-overflow.rs:1:9 9 | 10LL | #![deny(overflowing_literals)] 11 | ^^^^^^^^^^^^^^^^^^^^ 12 13error: literal out of range for `u8` 14 --> $DIR/lint-range-endpoint-overflow.rs:6:23 15 | 16LL | let range_c = 0..=256; 17 | ^^^ 18 | 19 = note: the literal `256` does not fit into the type `u8` whose range is `0..=255` 20 21error: literal out of range for `u8` 22 --> $DIR/lint-range-endpoint-overflow.rs:7:19 23 | 24LL | let range_d = 256..5; 25 | ^^^ 26 | 27 = note: the literal `256` does not fit into the type `u8` whose range is `0..=255` 28 29error: literal out of range for `u8` 30 --> $DIR/lint-range-endpoint-overflow.rs:8:22 31 | 32LL | let range_e = 0..257; 33 | ^^^ 34 | 35 = note: the literal `257` does not fit into the type `u8` whose range is `0..=255` 36 37error: range endpoint is out of range for `u8` 38 --> $DIR/lint-range-endpoint-overflow.rs:9:20 39 | 40LL | let _range_f = 0..256u8; 41 | ^^^^^^^^ help: use an inclusive range instead: `0..=255u8` 42 43error: range endpoint is out of range for `i8` 44 --> $DIR/lint-range-endpoint-overflow.rs:10:20 45 | 46LL | let _range_g = 0..128i8; 47 | ^^^^^^^^ help: use an inclusive range instead: `0..=127i8` 48 49error: aborting due to 6 previous errors 50