summary refs log blame commit diff stats
path: root/tests/04-generics.rs
blob: eefeff2cb6a7ef515f14a01eeb2c778902036a32 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                 
// Checks that #[impl_trait] works with generics.

use impl_trait::impl_trait;

struct Foo<T>(T);
trait Bar {
}

impl_trait! {
    impl<T> Foo<T> {
    }
}

fn main() {}