mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
22 lines
321 B
Rust
22 lines
321 B
Rust
|
// 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() {}
|