]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-13466.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / issues / issue-13466.stderr
1 error[E0308]: mismatched types
2 --> $DIR/issue-13466.rs:8:9
3 |
4 LL | let _x: usize = match Some(1) {
5 | ------- this expression has type `Option<{integer}>`
6 LL | Ok(u) => u,
7 | ^^^^^ expected `Option<{integer}>`, found `Result<_, _>`
8 |
9 = note: expected enum `Option<{integer}>`
10 found enum `Result<_, _>`
11
12 error[E0308]: mismatched types
13 --> $DIR/issue-13466.rs:14:9
14 |
15 LL | let _x: usize = match Some(1) {
16 | ------- this expression has type `Option<{integer}>`
17 ...
18 LL | Err(e) => panic!(e)
19 | ^^^^^^ expected `Option<{integer}>`, found `Result<_, _>`
20 |
21 = note: expected enum `Option<{integer}>`
22 found enum `Result<_, _>`
23
24 error: aborting due to 2 previous errors
25
26 For more information about this error, try `rustc --explain E0308`.