2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2019-07-06 19:45:23 +03:00
|
|
|
|
|
|
|
#![feature(decl_macro)]
|
2023-05-19 11:14:55 +02:00
|
|
|
#![allow(dropping_copy_types)]
|
2019-07-06 19:45:23 +03:00
|
|
|
|
|
|
|
macro mac() {
|
|
|
|
mod m {
|
|
|
|
fn f() {
|
|
|
|
std::mem::drop(0); // OK (extern prelude)
|
|
|
|
drop(0); // OK (stdlib prelude)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mac!();
|
|
|
|
|
|
|
|
fn main() {}
|