fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0308]: mismatched types 2 --> $DIR/issue-13466.rs:8:9 3 | 4LL | let _x: usize = match Some(1) { 5 | ------- this match expression has type `std::option::Option<{integer}>` 6LL | Ok(u) => u, 7 | ^^^^^ expected enum `std::option::Option`, found enum `std::result::Result` 8 | 9 = note: expected enum `std::option::Option<{integer}>` 10 found enum `std::result::Result<_, _>` 11 12error[E0308]: mismatched types 13 --> $DIR/issue-13466.rs:14:9 14 | 15LL | let _x: usize = match Some(1) { 16 | ------- this match expression has type `std::option::Option<{integer}>` 17... 18LL | Err(e) => panic!(e) 19 | ^^^^^^ expected enum `std::option::Option`, found enum `std::result::Result` 20 | 21 = note: expected enum `std::option::Option<{integer}>` 22 found enum `std::result::Result<_, _>` 23 24error: aborting due to 2 previous errors 25 26For more information about this error, try `rustc --explain E0308`.