mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
14 lines
311 B
Rust
14 lines
311 B
Rust
mod a {}
|
|
|
|
macro_rules! m {
|
|
() => {
|
|
use a::$crate; //~ ERROR unresolved import `a::$crate`
|
|
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
|
|
}
|
|
}
|
|
|
|
m!();
|
|
|
|
fn main() {}
|