blob: 26d7d4280fadbe79cd5b3415f94867fc0c9cfd36 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// This is a regression test for #61933
// Verify that the vec![] macro may not be used in patterns
// and that the resulting diagnostic is actually helpful.
fn main() {
match Some(vec![42]) {
Some(vec![43]) => {} //~ ERROR expected pattern, found `#`
_ => {}
}
}
|