]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/vec-macro-in-pattern.rs
Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup
[rust.git] / src / test / ui / macros / vec-macro-in-pattern.rs
1 // This is a regression test for #61933
2 // Verify that the vec![] macro may not be used in patterns
3 // and that the resulting diagnostic is actually helpful.
4
5 fn main() {
6     match Some(vec![42]) {
7         Some(vec![43]) => {} //~ ERROR arbitrary expressions aren't allowed in patterns
8         _ => {}
9     }
10 }