We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23a3d77 commit 9f614cbCopy full SHA for 9f614cb
tests/ui/proc-macro/custom-attr-panic.rs
@@ -0,0 +1,8 @@
1
+//@ aux-build: test-macros.rs
2
+
3
+extern crate test_macros;
4
5
+#[test_macros::panic_attr] //~ ERROR custom attribute panicked
6
+fn foo() {}
7
8
+fn main() {}
tests/ui/proc-macro/custom-attr-panic.stderr
@@ -0,0 +1,10 @@
+error: custom attribute panicked
+ --> $DIR/custom-attr-panic.rs:5:1
+ |
+LL | #[test_macros::panic_attr]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
+ = help: message: panic-attr
9
+error: aborting due to 1 previous error
10
0 commit comments