rust/src/test/ui/issues/issue-3680.rs
2018-12-25 21:08:33 -07:00

10 lines
281 B
Rust

fn main() {
match None {
Err(_) => ()
//~^ ERROR mismatched types
//~| expected type `std::option::Option<_>`
//~| found type `std::result::Result<_, _>`
//~| expected enum `std::option::Option`, found enum `std::result::Result`
}
}