about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-21 22:56:31 +0100
committerGitHub <noreply@github.com>2020-03-21 22:56:31 +0100
commit17e6ed1fd97980146f63fb65e83da8702f294d31 (patch)
treec9c762cf63210999b8cdc8630b98efa02bc8a6ee
parent39c52225dd06ab06ef75ef97841c66c7d9b6e56c (diff)
parente391d776e3869f56ca1467a4c7e3469080c5378d (diff)
downloadrust-17e6ed1fd97980146f63fb65e83da8702f294d31.tar.gz
rust-17e6ed1fd97980146f63fb65e83da8702f294d31.zip
Rollup merge of #70238 - petrochenkov:procmod, r=Centril
Add a test for out-of-line module passed through a proc macro

Closes https://github.com/rust-lang/rust/issues/58818.
-rw-r--r--src/test/ui/proc-macro/out-of-line-mod.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/out-of-line-mod.rs b/src/test/ui/proc-macro/out-of-line-mod.rs
new file mode 100644
index 00000000000..658ed6c18e0
--- /dev/null
+++ b/src/test/ui/proc-macro/out-of-line-mod.rs
@@ -0,0 +1,13 @@
+// Out-of-line module is found on the filesystem if passed through a proc macro (issue #58818).
+
+// check-pass
+// aux-build:test-macros.rs
+
+#[macro_use]
+extern crate test_macros;
+
+mod outer {
+    identity! { mod inner; }
+}
+
+fn main() {}