1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use wonderbox::resolve_dependencies; #[derive(Debug, Default)] struct Foo; #[resolve_dependencies] impl Foo { fn new() -> Self { Foo::default() } } #[test] #[allow(clippy::blacklisted_name)] fn test() { let _foo = Foo::new(); }