about summary refs log tree commit diff
path: root/tests/ui/macros/macro-path-prelude-pass.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/macro-path-prelude-pass.rs')
-rw-r--r--tests/ui/macros/macro-path-prelude-pass.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-path-prelude-pass.rs b/tests/ui/macros/macro-path-prelude-pass.rs
new file mode 100644
index 00000000000..7cf346286ea
--- /dev/null
+++ b/tests/ui/macros/macro-path-prelude-pass.rs
@@ -0,0 +1,9 @@
+// check-pass
+
+mod m {
+    fn check() {
+        std::panic!(); // OK
+    }
+}
+
+fn main() {}