about summary refs log tree commit diff
path: root/tests/ui/parser/expr-as-stmt-2.stderr
AgeCommit message (Collapse)AuthorLines
2025-09-02Suggest parentheses around if-expressionsEsteban Küber-1/+155
``` error[E0308]: mismatched types --> $DIR/expr-as-stmt-2.rs:15:15 | LL | if true { true } else { false } && true; | ----------^^^^----------------- | | | | | expected `()`, found `bool` | expected this to be `()` | help: parentheses are required to parse this as an expression | LL | (if true { true } else { false }) && true; | + + ```
2023-01-11Move /src/test to /testsAlbert Larsan-0/+46