Files
rust/tests/ui/macros/attr-expr.stderr
T
2026-03-20 18:48:38 -04:00

25 lines
755 B
Plaintext

error: expected identifier, found metavariable
--> $DIR/attr-expr.rs:3:11
|
LL | #[$e]
| ^^ expected identifier, found metavariable
...
LL | foo!(inline);
| ------------ in this macro invocation
|
= note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `expr` metavariable
--> $DIR/attr-expr.rs:12:18
|
LL | #[inline($e)]
| ^^
...
LL | bar!(always);
| ------------ in this macro invocation
|
= note: this error originates in the macro `bar` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors