rust/tests/ui/hygiene/stdlib-prelude-from-opaque-late.rs
2023-01-11 09:32:08 +00:00

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() {}