]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
48663c56 | 2 | --> $DIR/const-eval-overflow-3b.rs:18:22 |
b7449926 XL |
3 | | |
4 | LL | = [0; (i8::MAX + 1u8) as usize]; | |
60c5eb7d | 5 | | ^^^ expected `i8`, found `u8` |
b7449926 XL |
6 | |
7 | error[E0277]: cannot add `u8` to `i8` | |
48663c56 | 8 | --> $DIR/const-eval-overflow-3b.rs:18:20 |
b7449926 XL |
9 | | |
10 | LL | = [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 | ||
15 | error: aborting due to 2 previous errors | |
16 | ||
48663c56 | 17 | Some errors have detailed explanations: E0277, E0308. |
b7449926 | 18 | For more information about an error, try `rustc --explain E0277`. |