about summary refs log tree commit diff
path: root/tests/ui/proc-macro/custom-attr-panic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/proc-macro/custom-attr-panic.rs')
-rw-r--r--tests/ui/proc-macro/custom-attr-panic.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/custom-attr-panic.rs b/tests/ui/proc-macro/custom-attr-panic.rs
new file mode 100644
index 00000000000..23bcb66319d
--- /dev/null
+++ b/tests/ui/proc-macro/custom-attr-panic.rs
@@ -0,0 +1,8 @@
+//@ aux-build: test-macros.rs
+
+extern crate test_macros;
+
+#[test_macros::panic_attr] //~ ERROR custom attribute panicked
+fn foo() {}
+
+fn main() {}