fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
601 B18 linesraw
1error[E0308]: mismatched types
2  --> $DIR/const-eval-overflow-3b.rs:18:22
3   |
4LL |     = [0; (i8::MAX + 1u8) as usize];
5   |                      ^^^ expected `i8`, found `u8`
6
7error[E0277]: cannot add `u8` to `i8`
8  --> $DIR/const-eval-overflow-3b.rs:18:20
9   |
10LL |     = [0; (i8::MAX + 1u8) as usize];
11   |                    ^ no implementation for `i8 + u8`
12   |
13   = help: the trait `std::ops::Add<u8>` is not implemented for `i8`
14
15error: aborting due to 2 previous errors
16
17Some errors have detailed explanations: E0277, E0308.
18For more information about an error, try `rustc --explain E0277`.