Video details

RustConf 2022 - Weird Expressions and Where to Find Them by Michael Gattozzi


Buried deep in the test suite of rustc exists a singular file,, that has been around since 2011 that is filled with "technically legal" Rust. While it is far from idiomatic and makes many a Rustacean ask "why?" if not actively running away from the horror it presents, the test file is a document of what Rust has been and is today. It's also an example of things that need to be legal so we can write well formed Rust programs. This talk intends to dive into the history of the file as well as why any of it even works in the first place.