2018-11-13 23:52:26 +00:00
|
|
|
error[E0433]: failed to resolve: `$crate` in paths can only be used in start position
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/dollar-crate-is-keyword-2.rs:6:16
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | use a::$crate::b;
|
2018-09-03 17:27:14 +00:00
|
|
|
| ^^^^^^ `$crate` in paths can only be used in start position
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
|
|
|
LL | m!();
|
2021-10-14 18:28:28 +00:00
|
|
|
| ---- in this macro invocation
|
2019-12-16 13:56:47 +00:00
|
|
|
|
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2018-09-03 17:27:14 +00:00
|
|
|
error[E0432]: unresolved import `a::$crate`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/dollar-crate-is-keyword-2.rs:5:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | use a::$crate;
|
2018-09-03 17:27:14 +00:00
|
|
|
| ^^^^^^^^^ no `$crate` in `a`
|
2018-08-08 12:28:26 +00:00
|
|
|
...
|
|
|
|
LL | m!();
|
2021-10-14 18:28:28 +00:00
|
|
|
| ---- in this macro invocation
|
2019-12-16 13:56:47 +00:00
|
|
|
|
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2018-11-13 23:52:26 +00:00
|
|
|
error[E0433]: failed to resolve: `$crate` in paths can only be used in start position
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/dollar-crate-is-keyword-2.rs:7:21
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | type A = a::$crate;
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^ `$crate` in paths can only be used in start position
|
|
|
|
...
|
|
|
|
LL | m!();
|
2021-10-14 18:28:28 +00:00
|
|
|
| ---- in this macro invocation
|
2019-12-16 13:56:47 +00:00
|
|
|
|
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2019-04-17 17:26:38 +00:00
|
|
|
Some errors have detailed explanations: E0432, E0433.
|
2018-08-08 12:28:26 +00:00
|
|
|
For more information about an error, try `rustc --explain E0432`.
|