ty: convert ErrorHandled::Reported
to ConstKind::Error
.
This commit is contained in:
parent
d7c4081b18
commit
77f38dc284
29 changed files with 54 additions and 295 deletions
|
@ -12,16 +12,7 @@ LL | = [0; (i8::MAX + 1u8) as usize];
|
|||
|
|
||||
= help: the trait `std::ops::Add<u8>` is not implemented for `i8`
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/const-eval-overflow-3b.rs:18:7
|
||||
|
|
||||
LL | = [0; (i8::MAX + 1u8) as usize];
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `128usize`, found `(i8::MAX + 1u8) as usize`
|
||||
|
|
||||
= note: expected array `[u32; 128]`
|
||||
found array `[u32; _]`
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
Some errors have detailed explanations: E0277, E0308.
|
||||
For more information about an error, try `rustc --explain E0277`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue