]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic_const_exprs/from-sig-fail.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / generic_const_exprs / from-sig-fail.stderr
1 error[E0080]: evaluation of `test::<0_usize>::{constant#0}` failed
2   --> $DIR/from-sig-fail.rs:4:35
3    |
4 LL | fn test<const N: usize>() -> [u8; N - 1] {
5    |                                   ^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0080`.