rust/tests/ui/dollar-crate/dollar-crate-is-keyword-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
311 B
Rust
Raw Normal View History

2017-06-25 17:34:49 +00:00
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
2017-06-25 17:34:49 +00:00
}
}
m!();
fn main() {}