1 #![allow(unused_assignments, unused_variables, dead_code)]
4 // Initialize test constants in a way that cannot be determined at compile time, to ensure
5 // rustc and LLVM cannot optimize out statements (or coverage counters) downstream from
6 // dependent conditions.
7 let is_true = std::env::args().len() == 1;
15 const IN_MOD_CONST: u32 = 1000;
28 const IN_CONST: u32 = 1234;
31 fn trait_func(&mut self, incr: u32);
33 fn default_trait_func(&mut self) {
35 self.trait_func(IN_CONST);
39 impl InTrait for InStruct {
40 fn trait_func(&mut self, incr: u32) {
41 self.in_struct_field += incr;
42 in_func(self.in_struct_field);
52 let mut val = InStruct {
56 val.default_trait_func();