1 error[E0308]: mismatched types
2 --> $DIR/issue-3680.rs:3:9
5 | ---- this expression has type `Option<_>`
7 | ^^^^^^ expected enum `Option`, found enum `Result`
9 = note: expected enum `Option<_>`
10 found enum `Result<_, _>`
11 help: try wrapping the pattern in `Some`
13 LL | Some(Err(_)) => ()
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0308`.