It's more convenient to have all this highly related stuff together on one screen (for future refactorings). The `expand_invoc` function is compact enough now, after all the previous refactorings.
14 lines
302 B
Text
14 lines
302 B
Text
error: macro rhs must be delimited
|
|
--> $DIR/macro-error.rs:2:18
|
|
|
|
|
LL | ($a:expr) => a;
|
|
| ^
|
|
|
|
error: non-type macro in type position: cfg
|
|
--> $DIR/macro-error.rs:8:12
|
|
|
|
|
LL | let _: cfg!(foo) = ();
|
|
| ^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|