fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-12552.rs:6:5 3 | 4LL | match t { 5 | - this expression has type `Result<_, {integer}>` 6LL | Some(k) => match k { 7 | ^^^^^^^ expected `Result<_, {integer}>`, found `Option<_>` 8 | 9 = note: expected enum `Result<_, {integer}>` 10 found enum `Option<_>` 11help: try wrapping the pattern in `Ok` 12 | 13LL | Ok(Some(k)) => match k { 14 | +++ + 15 16error[E0308]: mismatched types 17 --> $DIR/issue-12552.rs:9:5 18 | 19LL | match t { 20 | - this expression has type `Result<_, {integer}>` 21... 22LL | None => () 23 | ^^^^ expected `Result<_, {integer}>`, found `Option<_>` 24 | 25 = note: expected enum `Result<_, {integer}>` 26 found enum `Option<_>` 27help: try wrapping the pattern in `Ok` 28 | 29LL | Ok(None) => () 30 | +++ + 31 32error: aborting due to 2 previous errors 33 34For more information about this error, try `rustc --explain E0308`.