rust/src/test/ui/macros/vec-macro-in-pattern.stderr

11 lines
314 B
Plaintext
Raw Normal View History

2021-01-16 15:32:51 +00:00
error: arbitrary expressions aren't allowed in patterns
--> $DIR/vec-macro-in-pattern.rs:7:14
|
LL | Some(vec![43]) => {}
| ^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to previous error