fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/const-eval-overflow-4b.rs:9:30 3 | 4LL | : [u32; (i8::MAX as i8 + 1u8) as usize] 5 | ^^^ expected `i8`, found `u8` 6 7error[E0277]: cannot add `u8` to `i8` 8 --> $DIR/const-eval-overflow-4b.rs:9:28 9 | 10LL | : [u32; (i8::MAX as i8 + 1u8) as usize] 11 | ^ no implementation for `i8 + u8` 12 | 13 = help: the trait `Add<u8>` is not implemented for `i8` 14 = help: the following other types implement trait `Add<Rhs>`: 15 <i8 as Add> 16 <i8 as Add<&i8>> 17 <&'a i8 as Add<i8>> 18 <&i8 as Add<&i8>> 19 20error[E0604]: only `u8` can be cast as `char`, not `i8` 21 --> $DIR/const-eval-overflow-4b.rs:22:13 22 | 23LL | : [u32; 5i8 as char as usize] 24 | ^^^^^^^^^^^ invalid cast 25 | 26help: try casting from `u8` instead 27 --> $DIR/const-eval-overflow-4b.rs:22:13 28 | 29LL | : [u32; 5i8 as char as usize] 30 | ^^^^^^^^^^^ 31 32error: aborting due to 3 previous errors 33 34Some errors have detailed explanations: E0277, E0308, E0604. 35For more information about an error, try `rustc --explain E0277`.