1 2 3 4 5 6 7 8 9 10 11 12 13
use plugctx_derive::Plugin; #[derive(Plugin)] #[plugin(inject(Foo))] struct BadAttr; impl BadAttr { fn on_build(&self, _ctx: &mut plugctx::Context) -> Result<(), plugctx::Error> { Ok(()) } } fn main() {}