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

14 lines
488 B
Text
Raw Normal View History

2020-02-15 01:50:26 +01:00
error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `static`, `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)
2020-02-15 01:50:26 +01:00
| ^^ expected one of 11 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