rust/tests/ui/macros/vec-macro-in-pattern.stderr

12 lines
419 B
Plaintext
Raw Normal View History

2021-01-16 09:32:51 -06:00
error: arbitrary expressions aren't allowed in patterns
--> $DIR/vec-macro-in-pattern.rs:7:14
|
LL | Some(vec![43]) => {}
| ^^^^^^^^
|
2024-04-29 07:53:38 -05:00
= note: the `expr` fragment specifier forces the metavariable's content to be an expression
= note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
2021-01-16 09:32:51 -06:00
error: aborting due to 1 previous error
2021-01-16 09:32:51 -06:00