]>
Commit | Line | Data |
---|---|---|
041b39d2 | 1 | mod a {} |
7cac9316 | 2 | |
041b39d2 XL |
3 | macro_rules! m { |
4 | () => { | |
5 | use a::$crate; //~ ERROR unresolved import `a::$crate` | |
ff7c6d11 XL |
6 | use a::$crate::b; //~ ERROR `$crate` in paths can only be used in start position |
7 | type A = a::$crate; //~ ERROR `$crate` in paths can only be used in start position | |
476ff2be SL |
8 | } |
9 | } | |
041b39d2 XL |
10 | |
11 | m!(); | |
12 | ||
13 | fn main() {} |