summaryrefslogtreecommitdiffstats
path: root/tests/ui/hygiene/stdlib-prelude-from-opaque-early.rs
blob: c8c5c72bf95c43d056f38de7c63c6190f0065919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// check-pass
// aux-build:stdlib-prelude.rs

#![feature(decl_macro)]
#![feature(prelude_import)]

extern crate stdlib_prelude;

#[prelude_import]
use stdlib_prelude::*;

macro mac() {
    mod m {
        use std::mem; // OK (extern prelude)
        stdlib_macro!(); // OK (stdlib prelude)
    }
}

mac!();

fn main() {}