]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![allow(unused_variables)] |
a7813a04 XL |
3 | mod a { |
4 | pub mod b { | |
5 | pub mod c { | |
6 | pub struct S; | |
7 | pub struct Z; | |
8 | } | |
9 | pub struct W; | |
223e47cc LB |
10 | } |
11 | } | |
12 | ||
a7813a04 XL |
13 | macro_rules! import { |
14 | (1 $p: path) => (use $p;); | |
15 | (2 $p: path) => (use $p::{Z};); | |
16 | (3 $p: path) => (use $p::*;); | |
17 | } | |
18 | ||
19 | import! { 1 a::b::c::S } | |
20 | import! { 2 a::b::c } | |
21 | import! { 3 a::b } | |
22 | ||
23 | fn main() { | |
24 | let s = S; | |
25 | let z = Z; | |
26 | let w = W; | |
223e47cc | 27 | } |