summary refs log tree commit diff stats
path: root/tests/03-not-trait-impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/03-not-trait-impl.rs')
-rw-r--r--tests/03-not-trait-impl.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/03-not-trait-impl.rs b/tests/03-not-trait-impl.rs
new file mode 100644
index 0000000..0b05145
--- /dev/null
+++ b/tests/03-not-trait-impl.rs
@@ -0,0 +1,16 @@
+// Checks that #[impl_trait] doesn't work on a trait impl.
+
+use impl_trait::impl_trait;
+
+struct Foo {
+}
+
+trait Bar {
+}
+
+impl_trait! {
+    impl Bar for Foo {
+    }
+}
+
+fn main() {}