summaryrefslogtreecommitdiffstats
path: root/tests/ui/auxiliary/fancy-panic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/auxiliary/fancy-panic.rs')
-rw-r--r--tests/ui/auxiliary/fancy-panic.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/auxiliary/fancy-panic.rs b/tests/ui/auxiliary/fancy-panic.rs
new file mode 100644
index 000000000..35be93b05
--- /dev/null
+++ b/tests/ui/auxiliary/fancy-panic.rs
@@ -0,0 +1,9 @@
+#[macro_export]
+macro_rules! fancy_panic {
+ () => {
+ panic!("{}");
+ };
+ ($msg:expr) => {
+ panic!($msg)
+ };
+}