]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-eval/const-eval-overflow2b.rs
1 #![allow(unused_imports)]
3 // Note: the relevant lint pass here runs before some of the constant
4 // evaluation below (e.g., that performed by codegen and llvm), so if you
5 // change this warn to a deny, then the compiler will exit before
6 // those errors are detected.
10 const VALS_I8
: (i8,) =
14 //~^^ ERROR evaluation of constant value failed
16 const VALS_I16
: (i16,) =
20 //~^^ ERROR evaluation of constant value failed
22 const VALS_I32
: (i32,) =
26 //~^^ ERROR evaluation of constant value failed
28 const VALS_I64
: (i64,) =
32 //~^^ ERROR evaluation of constant value failed
34 const VALS_U8
: (u8,) =
38 //~^^ ERROR evaluation of constant value failed
40 const VALS_U16
: (u16,) = (
43 //~^^ ERROR evaluation of constant value failed
45 const VALS_U32
: (u32,) = (
48 //~^^ ERROR evaluation of constant value failed
50 const VALS_U64
: (u64,) =
54 //~^^ ERROR evaluation of constant value failed