Weird Expressions and Where to Find Them
summary
A code‑level tour of the compiler test file weird-exprs.rs with concrete examples: commit history from 2011, exact tests that show nested if and match as expressions, loops returning values, the never type typing as any type, and a nightly impl of FnOnce for a user type that lets values be repeatedly invoked. The talk walks through the actual test cases, points to the rustc test UI path, and demonstrates which odd constructs are accepted and why they must remain legal.
AI-written summary · about
chapters (9)
- 0:00Start
- 5:05Match
- 7:15Functions
- 7:26Functions for Types
- 8:06Function Traits
- 8:41Recap
- 10:19Loops
- 12:20Keywords
- 12:38Strict Keywords








