// Checks that `impl trait` works, with docs. use impl_trait::impl_trait; struct Foo; trait Bar { } impl_trait! { impl Foo { /// More test docs impl trait Bar { } } } fn static_assert(_t: T) {} fn main() { static_assert(Foo); }