Skip to content

Commit c0da639

Browse files
committed
Thank you Dylan and JohnTitor for blessing me.
1 parent b974383 commit c0da639

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/test/ui/dollar-crate/dollar-crate-is-keyword.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ macro_rules! m {
88

99
use $crate; //~ ERROR `$crate` may not be imported
1010
use $crate as $crate; //~ ERROR expected identifier, found reserved identifier `$crate`
11+
//~^ ERROR `$crate` may not be imported
1112
}
1213
}
1314

src/test/ui/dollar-crate/dollar-crate-is-keyword.stderr

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LL | m!();
1919
error: `$crate` may not be imported
2020
--> $DIR/dollar-crate-is-keyword.rs:9:9
2121
|
22-
LL | use $crate; // ERROR `$crate` may not be imported
22+
LL | use $crate;
2323
| ^^^^^^^^^^^
2424
...
2525
LL | m!();
@@ -35,4 +35,3 @@ LL | m!();
3535
| ----- in this macro invocation
3636

3737
error: aborting due to 4 previous errors
38-
+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
error: `$crate` may not be imported
2-
--> $DIR/import-crate-var.rs:7:5
2+
--> $DIR/import-crate-var.rs:6:5
33
|
44
LL | m!();
55
| ^^^^^
66
|
7-
= note: this warning originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
7+
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
88

9+
error: aborting due to previous error

0 commit comments

Comments
 (0)