rust/tests/ui/issues/issue-3680.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
228 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 `Option<_>`
2021-01-28 16:01:36 +00:00
//~| found enum `Result<_, _>`
//~| expected `Option<_>`, found `Result<_, _>`
2012-12-07 02:32:13 +00:00
}
}