]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-12552.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-12552.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-12552.rs:6:5
3    |
4 LL |   match t {
5    |         - this match expression has type `std::result::Result<_, {integer}>`
6 LL |     Some(k) => match k {
7    |     ^^^^^^^ expected enum `std::result::Result`, found enum `std::option::Option`
8    |
9    = note: expected type `std::result::Result<_, {integer}>`
10               found type `std::option::Option<_>`
11
12 error[E0308]: mismatched types
13   --> $DIR/issue-12552.rs:9:5
14    |
15 LL |     None => ()
16    |     ^^^^ expected enum `std::result::Result`, found enum `std::option::Option`
17    |
18    = note: expected type `std::result::Result<_, {integer}>`
19               found type `std::option::Option<_>`
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0308`.