diff options
Diffstat (limited to 'tests/ui/proc-macro/out-of-line-mod.rs')
-rw-r--r-- | tests/ui/proc-macro/out-of-line-mod.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/out-of-line-mod.rs b/tests/ui/proc-macro/out-of-line-mod.rs new file mode 100644 index 000000000..658ed6c18 --- /dev/null +++ b/tests/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() {} |