mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
62ba3e70a1
The previous output was unintuitive to users.
27 lines
878 B
Plaintext
27 lines
878 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/issue-13466.rs:8:9
|
|
|
|
|
LL | let _x: usize = match Some(1) {
|
|
| ------- this expression has type `Option<{integer}>`
|
|
LL | Ok(u) => u,
|
|
| ^^^^^ expected `Option<{integer}>`, found `Result<_, _>`
|
|
|
|
|
= note: expected enum `Option<{integer}>`
|
|
found enum `Result<_, _>`
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/issue-13466.rs:14:9
|
|
|
|
|
LL | let _x: usize = match Some(1) {
|
|
| ------- this expression has type `Option<{integer}>`
|
|
...
|
|
LL | Err(e) => panic!(e)
|
|
| ^^^^^^ expected `Option<{integer}>`, found `Result<_, _>`
|
|
|
|
|
= note: expected enum `Option<{integer}>`
|
|
found enum `Result<_, _>`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|