summary refs log tree commit diff
path: root/tests/ui/issues/issue-13466.stderr
blob: 68a555a16260ada04067a36c1d8cde61636c77a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
error[E0308]: mismatched types
  --> $DIR/issue-13466.rs:10: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:16: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`.