]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-err-late.rs
2 // compile-flags: -C overflow-checks=on
4 #![allow(arithmetic_overflow, unconditional_panic)]
6 fn black_box
<T
>(_
: T
) {
13 const FOO
: u8 = [5u8][1];
14 //~^ ERROR evaluation of `S::<i32>::FOO` failed
15 //~| ERROR evaluation of `S::<u32>::FOO` failed
19 black_box((S
::<i32>::FOO
, S
::<u32>::FOO
)); //~ constant