summary refs log tree commit diff stats
path: root/tests/04-generics.rs
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2021-03-22 20:50:59 -0300
committerSoniEx2 <endermoneymod@gmail.com>2021-03-22 20:52:47 -0300
commit5bb562ad496f9ec42ec59abfe31d3576266c6a6d (patch)
tree4c792fcc67d4211c6c5b4a0e18ebb832b0d4ce66 /tests/04-generics.rs
Initial commit
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() {}