summaryrefslogtreecommitdiffstats
path: root/tests/ui/modules/path-no-file-name.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/modules/path-no-file-name.rs')
-rw-r--r--tests/ui/modules/path-no-file-name.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/modules/path-no-file-name.rs b/tests/ui/modules/path-no-file-name.rs
new file mode 100644
index 000000000..f62cd2a9e
--- /dev/null
+++ b/tests/ui/modules/path-no-file-name.rs
@@ -0,0 +1,7 @@
+// normalize-stderr-test: "\.:.*\(" -> ".: $$ACCESS_DENIED_MSG ("
+// normalize-stderr-test: "os error \d+" -> "os error $$ACCESS_DENIED_CODE"
+
+#[path = "."]
+mod m; //~ ERROR couldn't read
+
+fn main() {}