]>
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.
12 const VALS_I8
: (i8,) =
16 //~^^ ERROR any use of this value will cause an error
17 //~| WARN this was previously accepted by the compiler but is being phased out
19 const VALS_I16
: (i16,) =
23 //~^^ ERROR any use of this value will cause an error
24 //~| WARN this was previously accepted by the compiler but is being phased out
26 const VALS_I32
: (i32,) =
30 //~^^ ERROR any use of this value will cause an error
31 //~| WARN this was previously accepted by the compiler but is being phased out
33 const VALS_I64
: (i64,) =
37 //~^^ ERROR any use of this value will cause an error
38 //~| WARN this was previously accepted by the compiler but is being phased out
40 const VALS_U8
: (u8,) =
44 //~^^ ERROR any use of this value will cause an error
45 //~| WARN this was previously accepted by the compiler but is being phased out
47 const VALS_U16
: (u16,) = (
50 //~^^ ERROR any use of this value will cause an error
51 //~| WARN this was previously accepted by the compiler but is being phased out
53 const VALS_U32
: (u32,) = (
56 //~^^ ERROR any use of this value will cause an error
57 //~| WARN this was previously accepted by the compiler but is being phased out
59 const VALS_U64
: (u64,) =
63 //~^^ ERROR any use of this value will cause an error
64 //~| WARN this was previously accepted by the compiler but is being phased out