mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 20:28:33 +00:00
10 lines
225 B
Rust
10 lines
225 B
Rust
![]() |
fn main() {
|
||
|
let a = Some(vec![1, 2]);
|
||
|
match a {
|
||
|
Some(refe list) => println!("{list:?}"),
|
||
|
//~^ ERROR expected one of
|
||
|
//~| ERROR this pattern has 2 fields,
|
||
|
_ => println!("none"),
|
||
|
}
|
||
|
}
|