]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-51632-try-desugar-incompatible-types.stderr
Rollup merge of #67102 - Aaron1011:patch-3, r=Mark-Simulacrum
[rust.git] / src / test / ui / issues / issue-51632-try-desugar-incompatible-types.stderr
1 error[E0308]: try expression alternatives have incompatible types
2   --> $DIR/issue-51632-try-desugar-incompatible-types.rs:8:5
3    |
4 LL |     missing_discourses()?
5    |     ^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found `isize`
6    |
7    = note: expected enum `std::result::Result<isize, ()>`
8               found type `isize`
9 help: try removing this `?`
10    |
11 LL |     missing_discourses()
12    |                        --
13 help: try using a variant of the expected enum
14    |
15 LL |     Ok(missing_discourses()?)
16    |
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.