mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 18:30:39 +00:00
10 lines
289 B
Rust
10 lines
289 B
Rust
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<_, _>`
|
|
}
|
|
}
|