fn main() { match Some("foo") { None:: => {} //~ ERROR mismatched types Some(_) => {} } }