]>
Commit | Line | Data |
---|---|---|
a7813a04 XL |
1 | mod a { |
2 | pub mod b { | |
3 | pub mod c { | |
4 | pub struct S<T>(T); | |
5 | } | |
223e47cc LB |
6 | } |
7 | } | |
8 | ||
a7813a04 XL |
9 | macro_rules! import { |
10 | ($p: path) => (use $p;); | |
223e47cc | 11 | } |
a7813a04 | 12 | |
3b2f2976 XL |
13 | fn f1() { |
14 | import! { a::b::c::S<u8> } //~ ERROR unexpected generic arguments in path | |
15 | } | |
16 | fn f2() { | |
17 | import! { a::b::c::S<> } //~ ERROR unexpected generic arguments in path | |
18 | } | |
5869c6ff XL |
19 | fn f3() { |
20 | import! { a::b<>::c<u8>::S<> } //~ ERROR unexpected generic arguments in path | |
21 | } | |
a7813a04 XL |
22 | |
23 | fn main() {} |