2012-12-11 13:10:30 -08:00
|
|
|
fn main() {
|
2012-12-06 18:32:13 -08:00
|
|
|
match None {
|
2014-02-05 16:33:10 -06:00
|
|
|
Err(_) => ()
|
2015-01-12 01:01:44 -05:00
|
|
|
//~^ ERROR mismatched types
|
2020-09-02 10:40:56 +03:00
|
|
|
//~| expected enum `Option<_>`
|
2021-01-28 18:01:36 +02:00
|
|
|
//~| found enum `Result<_, _>`
|
2023-01-02 18:00:33 -08:00
|
|
|
//~| expected `Option<_>`, found `Result<_, _>`
|
2012-12-06 18:32:13 -08:00
|
|
|
}
|
|
|
|
}
|