rust/tests/ui/hygiene/auxiliary/xcrate.rs

29 lines
346 B
Rust

#![feature(decl_macro)]
#![allow(unused)]
pub use bar::test;
extern crate std as foo;
pub fn f() {}
use f as f2;
mod bar {
pub fn g() {}
use baz::h;
pub macro test() {
use std::mem;
use foo::cell;
::f();
::f2();
g();
h();
::bar::h();
}
}
mod baz {
pub fn h() {}
}