blob: 162bad34d3b637b2ae856dfe73757c67e90a55be (
plain) (
tree)
|
|
// Checks that `impl trait` works, with docs.
use impl_trait::impl_trait;
struct Foo;
trait Bar {
}
impl_trait! {
/// Test docs
impl Foo {
impl trait Bar {
}
}
}
fn static_assert<T: Bar>(_t: T) {}
fn main() {
static_assert(Foo);
}
|