error[E0277]: refutable pattern without `throw` is only supported for `Option` in `hdo!`
--> tests/ui/fail/result_pattern_without_throw.rs:9:33
|
9 | let _: Result<i32, Error> = hdo! {
| _________________________________^
10 | | Some(x) <- Ok::<_, Error>(Some(10));
11 | |
12 | | pure x * 2
13 | | };
| | ^
| | |
| |_____this bind needs an explicit failure value
| required by a bound introduced by this call
|
= help: the trait `raskell::__private::HdoPatternBind<_>` is not implemented for `Result<Option<{integer}>, Error>`
= note: for `Result`, use `pattern <- expression throw YourError;`