]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-len-underflow-subspans.rs
1 // Check that a constant-evaluation underflow highlights the correct
2 // spot (where the underflow occurred).
8 let a
: [i8; ONE
- TWO
] = unimplemented
!();
9 //~^ ERROR evaluation of constant value failed
10 //~| attempt to compute `1_usize - 2_usize`, which would overflow