Closed
Description
Crater picked up this issue in:
[INFO] [stdout] error: invalid `?` in type
[INFO] [stdout] --> src/tests.rs:65:26
[INFO] [stdout] |
[INFO] [stdout] 65 | let foo = fn_expr!{ o?.when(|&i| i > 0)?.when(|&i| i%2 == 0) };
[INFO] [stdout] | ^ `?` is only allowed on expressions, not types
[INFO] [stdout] |
[INFO] [stdout] help: if you meant to express that the type might not contain a value, use the `Option` wrapper type
[INFO] [stdout] |
[INFO] [stdout] 65 | let foo = fn_expr!{ Option<o>.when(|&i| i > 0)?.when(|&i| i%2 == 0) };
[INFO] [stdout] | +++++++ ~
[INFO] [stdout]