]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/const-eval-overflow-4b.stderr
Update tests to remove old numeric constants
[rust.git] / src / test / ui / consts / const-eval / const-eval-overflow-4b.stderr
index e695e9f75feb5261f32e5bc7668b1ec21a5d49b2..1e181c465dba768c3b628cbd50c4b6c613ee9a39 100644 (file)
@@ -1,11 +1,11 @@
 error[E0308]: mismatched types
-  --> $DIR/const-eval-overflow-4b.rs:12:30
+  --> $DIR/const-eval-overflow-4b.rs:9:30
    |
 LL |     : [u32; (i8::MAX as i8 + 1u8) as usize]
    |                              ^^^ expected `i8`, found `u8`
 
 error[E0277]: cannot add `u8` to `i8`
-  --> $DIR/const-eval-overflow-4b.rs:12:28
+  --> $DIR/const-eval-overflow-4b.rs:9:28
    |
 LL |     : [u32; (i8::MAX as i8 + 1u8) as usize]
    |                            ^ no implementation for `i8 + u8`
@@ -13,7 +13,7 @@ LL |     : [u32; (i8::MAX as i8 + 1u8) as usize]
    = help: the trait `Add<u8>` is not implemented for `i8`
 
 error[E0604]: only `u8` can be cast as `char`, not `i8`
-  --> $DIR/const-eval-overflow-4b.rs:25:13
+  --> $DIR/const-eval-overflow-4b.rs:22:13
    |
 LL |     : [u32; 5i8 as char as usize]
    |             ^^^^^^^^^^^ invalid cast