Files
rust/tests
Jonathan Brouwer 14510992f6 Rollup merge of #157033 - anoshyn:issue-116572-irrefutable-while-let-note, r=Nadrieril
Note irrefutable while let in loop type errors

When a while-let loop is used where a non-unit value is expected, rustc already notes that while loops evaluate to unit. For simple irrefutable while-let patterns, add an extra note explaining that the pattern always matches and the loop condition never fails. Covers binding, wildcard, and tuples made from those patterns.

Fixes rust-lang/rust#116572.

Tested with: ```./x test tests/ui/coercion/coerce-loop-issue-122561.rs --bless```
2026-05-30 11:40:21 +02:00
..