]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic_const_exprs/simple_fail.stderr
feat: omit suffixes in const generics (e.g. `1_i32`)
[rust.git] / src / test / ui / const-generics / generic_const_exprs / simple_fail.stderr
1 error[E0080]: evaluation of `test::<0>::{constant#0}` failed
2   --> $DIR/simple_fail.rs:9:10
3    |
4 LL |     [u8; N - 1]: Sized,
5    |          ^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
6
7 error[E0080]: evaluation of `Arr::<0>::{constant#0}` failed
8   --> $DIR/simple_fail.rs:4:33
9    |
10 LL | type Arr<const N: usize> = [u8; N - 1];
11    |                                 ^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0080`.