rust/src/test/ui/parser/macro/trait-non-item-macros.stderr

14 lines
478 B
Text
Raw Normal View History

error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or identifier, found `2`
2018-12-25 08:56:47 -07:00
--> $DIR/trait-non-item-macros.rs:2:19
2018-10-20 23:36:17 +03:00
|
LL | ($a:expr) => ($a)
| ^^ expected one of 10 possible tokens
2018-10-20 23:36:17 +03:00
...
LL | bah!(2);
| -------- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2018-10-20 23:36:17 +03:00
error: aborting due to previous error