summary refs log tree commit diff stats
path: root/tests/03-not-trait-impl.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/03-not-trait-impl.stderr')
-rw-r--r--tests/03-not-trait-impl.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/03-not-trait-impl.stderr b/tests/03-not-trait-impl.stderr
new file mode 100644
index 0000000..8206f00
--- /dev/null
+++ b/tests/03-not-trait-impl.stderr
@@ -0,0 +1,10 @@
+error: proc macro panicked
+  --> $DIR/03-not-trait-impl.rs:11:1
+   |
+11 | / impl_trait! {
+12 | |     impl Bar for Foo {
+13 | |     }
+14 | | }
+   | |_^
+   |
+   = help: message: impl_trait! may only be applied to inherent impls