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