]> git.proxmox.com Git - rustc.git/blame - src/test/ui/dollar-crate/dollar-crate-is-keyword-2.rs
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / ui / dollar-crate / dollar-crate-is-keyword-2.rs
CommitLineData
041b39d2 1mod a {}
7cac9316 2
041b39d2
XL
3macro_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
11m!();
12
13fn main() {}