mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
17 lines
222 B
Rust
17 lines
222 B
Rust
// check-pass
|
|
|
|
#![feature(decl_macro)]
|
|
|
|
macro mac() {
|
|
mod m {
|
|
fn f() {
|
|
std::mem::drop(0); // OK (extern prelude)
|
|
drop(0); // OK (stdlib prelude)
|
|
}
|
|
}
|
|
}
|
|
|
|
mac!();
|
|
|
|
fn main() {}
|