2017-06-25 12:34:49 -05:00
|
|
|
mod a {}
|
|
|
|
|
|
|
|
macro_rules! m {
|
|
|
|
() => {
|
|
|
|
use a::$crate; //~ ERROR unresolved import `a::$crate`
|
2017-11-19 08:05:29 -06:00
|
|
|
use a::$crate::b; //~ ERROR `$crate` in paths can only be used in start position
|
|
|
|
type A = a::$crate; //~ ERROR `$crate` in paths can only be used in start position
|
2017-06-25 12:34:49 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
m!();
|
|
|
|
|
|
|
|
fn main() {}
|