2017-06-25 20:34:49 +03:00
|
|
|
mod a {}
|
|
|
|
|
|
|
|
macro_rules! m {
|
|
|
|
() => {
|
|
|
|
use a::$crate; //~ ERROR unresolved import `a::$crate`
|
2017-11-19 17:05:29 +03: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 20:34:49 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
m!();
|
|
|
|
|
|
|
|
fn main() {}
|