struct Website { url: String, title: Option, } fn main() { let website = Website { url: "http://www.example.com".into(), title: Some("Example Domain".into()), }; if let Website { url, Some(title) } = website { //~ ERROR expected `,` //~^ NOTE while parsing the fields for this pattern println!("[{}]({})", title, url); // we hide the errors for `title` and `url` } if let Website { url, .. } = website { //~ NOTE this pattern println!("[{}]({})", title, url); //~ ERROR cannot find value `title` in this scope //~^ NOTE not found in this scope } }