rust/src/test/ui/issues/issue-3680.rs

10 lines
281 B
Rust
Raw Normal View History

fn main() {
2012-12-07 02:32:13 +00:00
match None {
2014-02-05 22:33:10 +00:00
Err(_) => ()
2015-01-12 06:01:44 +00:00
//~^ ERROR mismatched types
//~| expected enum `std::option::Option<_>`
//~| found enum `std::result::Result<_, _>`
//~| expected enum `std::option::Option`, found enum `std::result::Result`
2012-12-07 02:32:13 +00:00
}
}