summary refs log tree commit diff
path: root/src/test/ui/issue-12552.stderr
blob: 9a3d5ef02c6277df069e010d30fcb7d86b4dee2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0308]: mismatched types
  --> $DIR/issue-12552.rs:16:5
   |
LL |     Some(k) => match k { //~ ERROR mismatched types
   |     ^^^^^^^ expected enum `std::result::Result`, found enum `std::option::Option`
   |
   = note: expected type `std::result::Result<_, {integer}>`
              found type `std::option::Option<_>`

error[E0308]: mismatched types
  --> $DIR/issue-12552.rs:19:5
   |
LL |     None => () //~ ERROR mismatched types
   |     ^^^^ expected enum `std::result::Result`, found enum `std::option::Option`
   |
   = note: expected type `std::result::Result<_, {integer}>`
              found type `std::option::Option<_>`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.