rust/tests/ui/lowering/expr-in-pat-issue-99380.stderr

11 lines
293 B
Plaintext
Raw Permalink Normal View History

error: arbitrary expressions aren't allowed in patterns
--> $DIR/expr-in-pat-issue-99380.rs:10:10
|
LL | foo!(Some(3));
| ^^^^^^^
|
2024-04-29 07:53:38 -05:00
= note: the `expr` fragment specifier forces the metavariable's content to be an expression
error: aborting due to 1 previous error