Rollup merge of #31827 - teoryn:patch-1, r=brson
This commit is contained in:
commit
4cfa2ee2f1
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ struct Person {
|
|||
}
|
||||
|
||||
let name = "Steve".to_string();
|
||||
let mut x: Option<Person> = Some(Person { name: Some(name) });
|
||||
let x: Option<Person> = Some(Person { name: Some(name) });
|
||||
match x {
|
||||
Some(Person { name: ref a @ Some(_), .. }) => println!("{:?}", a),
|
||||
_ => {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue