18 lines
243 B
Rust
18 lines
243 B
Rust
// check-pass
|
|
|
|
#![feature(decl_macro)]
|
|
#![allow(drop_copy)]
|
|
|
|
macro mac() {
|
|
mod m {
|
|
fn f() {
|
|
std::mem::drop(0); // OK (extern prelude)
|
|
drop(0); // OK (stdlib prelude)
|
|
}
|
|
}
|
|
}
|
|
|
|
mac!();
|
|
|
|
fn main() {}
|