fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
790 B23 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-12552.rs:6:5
3   |
4LL |   match t {
5   |         - this expression has type `std::result::Result<_, {integer}>`
6LL |     Some(k) => match k {
7   |     ^^^^^^^ expected enum `std::result::Result`, found enum `std::option::Option`
8   |
9   = note: expected enum `std::result::Result<_, {integer}>`
10              found enum `std::option::Option<_>`
11
12error[E0308]: mismatched types
13  --> $DIR/issue-12552.rs:9:5
14   |
15LL |     None => ()
16   |     ^^^^ expected enum `std::result::Result`, found enum `std::option::Option`
17   |
18   = note: expected enum `std::result::Result<_, {integer}>`
19              found enum `std::option::Option<_>`
20
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0308`.