mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
20 lines
271 B
Rust
20 lines
271 B
Rust
//@ build-pass (FIXME(62277): could be check-pass?)
|
|
|
|
macro_rules! define_exported { () => {
|
|
#[macro_export]
|
|
macro_rules! exported {
|
|
() => ()
|
|
}
|
|
}}
|
|
|
|
mod inner1 {
|
|
use super::*;
|
|
exported!();
|
|
}
|
|
|
|
mod inner2 {
|
|
define_exported!();
|
|
}
|
|
|
|
fn main() {}
|