3 // Avoid having more than one `$crate`-named item in the same module,
4 // as even though they error, they still parse as `$crate` and conflict.
6 struct $crate {} //~ ERROR expected identifier, found reserved identifier `$crate`
9 use $crate; //~ ERROR `$crate` may not be imported
10 use $crate as $crate; //~ ERROR expected identifier, found reserved identifier `$crate`
11 //~^ ERROR `$crate` may not be imported