use extend::ext; use std::marker::PhantomData; struct Foo(PhantomData); #[ext] impl T { fn some_method(&self, _: Foo) {} } fn main() {}