fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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