]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/vec-macro-in-pattern.rs
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[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 }