summary refs log blame commit diff stats
path: root/tests/07-docs.rs
blob: a26bf50d75432ba84d34fa045c1840180d70b9a7 (plain) (tree)




















                                             
// 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: Bar>(_t: T) {}

fn main() {
    static_assert(Foo);
}