]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/const-eval-overflow-3.stderr
Merge branch 'master' into feature/core_convert_id
[rust.git] / src / test / ui / consts / const-eval / const-eval-overflow-3.stderr
1 error: attempt to add with overflow
2   --> $DIR/const-eval-overflow-3.rs:30:11
3    |
4 LL |     = [0; (i8::MAX + 1) as usize];
5    |           ^^^^^^^^^^^^^
6    |
7    = note: #[deny(const_err)] on by default
8
9 error[E0080]: could not evaluate repeat length
10   --> $DIR/const-eval-overflow-3.rs:30:11
11    |
12 LL |     = [0; (i8::MAX + 1) as usize];
13    |           -------------^^^^^^^^^
14    |           |
15    |           attempt to add with overflow
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0080`.