-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Milestone
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]
Metadata
Metadata
Assignees
Labels
P-mediumMedium priorityMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.