We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c2cc066 + 9f614cb commit 3fe809bCopy full SHA for 3fe809b
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