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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
346 B
Rust
Raw Normal View History

#![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() {}
}