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.
This commit is contained in:
commit
17e6ed1fd9
1 changed files with 13 additions and 0 deletions
13
src/test/ui/proc-macro/out-of-line-mod.rs
Normal file
13
src/test/ui/proc-macro/out-of-line-mod.rs
Normal file
|
@ -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() {}
|
Loading…
Add table
Add a link
Reference in a new issue