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