mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-28 11:15:26 +00:00
11 lines
289 B
Rust
11 lines
289 B
Rust
// 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 `#`
|
|
_ => {}
|
|
}
|
|
}
|