summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2091-track-caller/macro-declaration.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/rfc-2091-track-caller/macro-declaration.rs')
-rw-r--r--src/test/ui/rfc-2091-track-caller/macro-declaration.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/rfc-2091-track-caller/macro-declaration.rs b/src/test/ui/rfc-2091-track-caller/macro-declaration.rs
new file mode 100644
index 000000000..6ca09fac8
--- /dev/null
+++ b/src/test/ui/rfc-2091-track-caller/macro-declaration.rs
@@ -0,0 +1,10 @@
+// check-pass
+
+// See https://github.com/rust-lang/rust/issues/95151
+#[track_caller]
+macro_rules! _foo {
+ () => {};
+}
+
+fn main() {
+}