]> git.proxmox.com Git - rustc.git/blob - tests/ui/const-generics/generic_const_exprs/simple_fail.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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`.