#![allow(dead_code)] use polkadot_overseer_all_subsystems_gen::AllSubsystemsGen; #[derive(Clone, AllSubsystemsGen)] struct AllSubsystems { a: A, b: B, } fn main() { let all = AllSubsystems:: { a: 0u8, b: 1u16, }; let _all: AllSubsystems<_,_> = all.replace_a::(|_| 777_777u32); }