#[allow(dead_code)] pub struct Abc { } #[allow(dead_code)] impl Abc { const A: u8 = 3; pub fn abc(&self) -> u8 { 0 } fn def(&self) { } pub fn ghi(&self, _: A) -> u8 { 0 } } #[allow(dead_code)] pub struct Def { field: A, } #[allow(dead_code)] impl Def { pub fn def(&self) -> u16 { 0 } pub fn abc() { } fn abc2() { } } #[allow(dead_code)] impl Def { pub fn def(&self) -> u8 { 0 } }