1 error[E0308]: `?` operator has incompatible types
2 --> $DIR/issue-51632-try-desugar-incompatible-types.rs:8:5
4 LL | missing_discourses()?
5 | ^^^^^^^^^^^^^^^^^^^^^ expected enum `Result`, found `isize`
7 = note: `?` operator cannot convert from `isize` to `Result<isize, ()>`
8 = note: expected enum `Result<isize, ()>`
10 help: try removing this `?`
12 LL - missing_discourses()?
13 LL + missing_discourses()
15 help: try wrapping the expression in `Ok`
17 LL | Ok(missing_discourses()?)
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0308`.