use delegate_attr::delegate; struct Foo(Vec); #[delegate(x)] #[cfg(not(fake))] impl Foo { x } fn main() {}