blob: 7fdc6e179e47af27c9a286494f4adb7ce46ff1a0 (
plain)
1
2
3
4
5
6
7
8
9
|
fn main() {
match None { //~ NOTE this expression has type `Option<_>`
Err(_) => ()
//~^ ERROR mismatched types
//~| NOTE expected enum `Option<_>`
//~| NOTE found enum `Result<_, _>`
//~| NOTE expected `Option<_>`, found `Result<_, _>`
}
}
|