mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 12:13:43 +00:00
29 lines
346 B
Rust
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() {}
|
|
}
|