summaryrefslogtreecommitdiffstats
path: root/src/test/ui/hygiene/stdlib-prelude-from-opaque-late.rs
blob: cf65de2bc2395211486fd9af6de1d0d1d9f4ee81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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() {}