summary refs log tree commit diff stats
path: root/tests/04-generics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/04-generics.rs')
-rw-r--r--tests/04-generics.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/04-generics.rs b/tests/04-generics.rs
new file mode 100644
index 0000000..eefeff2
--- /dev/null
+++ b/tests/04-generics.rs
@@ -0,0 +1,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() {}