blob: 2cd707be3ce06671b5203080ee7d13f407535602 [file]
error: expected identifier, found metavariable
--> $DIR/attr-expr.rs:3:11
|
LL | macro_rules! foo {
LL | ($e:expr) => {
LL | #[$e]
| ^^ expected identifier, found metavariable
...
LL | foo!(inline);
| ------------ in this macro invocation
error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `expr` metavariable
--> $DIR/attr-expr.rs:12:18
|
LL | macro_rules! bar {
LL | ($e:expr) => {
LL | #[inline($e)]
| ^^
...
LL | bar!(always);
| ------------ in this macro invocation
error: aborting due to 2 previous errors