| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-11-24 | Move src/test/ui/if to src/test/ui/expr/if | Havvy (Ryan Scheel) | -49/+0 | |
| 2020-01-05 | Add backticks to various diagnostics | varkor | -6/+6 | |
| 2019-08-31 | Emit a single error on if expr with expectation and no else clause | Esteban Küber | -6/+0 | |
| 2019-05-10 | Various test changes | Mazdak Farrokhzad | -0/+30 | |
| 2019-03-07 | Add more details to elseless if error | Esteban Küber | -0/+15 | |
| 2019-03-07 | Point at coercion reason for if exprs without else clause | Esteban Küber | -0/+10 | |
| ``` error[E0317]: if may be missing an else clause --> $DIR/if-without-else-as-fn-expr.rs:2:5 | LL | fn foo(bar: usize) -> usize { | ----- found `usize` because of this return type LL | / if bar % 5 == 0 { LL | | return 3; LL | | } | |_____^ expected (), found usize | = note: expected type `()` found type `usize` = note: `if` expressions without `else` must evaluate to `()` ``` | ||||
