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