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

14 lines
488 B
Plaintext
Raw Normal View History

2020-02-14 18:50:26 -06:00
error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `static`, `type`, `unsafe`, or identifier, found `2`
2018-12-25 09:56:47 -06:00
--> $DIR/trait-non-item-macros.rs:2:19
2018-10-20 15:36:17 -05:00
|
LL | ($a:expr) => ($a)
2020-02-14 18:50:26 -06:00
| ^^ expected one of 11 possible tokens
2018-10-20 15:36:17 -05: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 15:36:17 -05:00
error: aborting due to previous error