ezyang’s blog

the arc of software bends towards understanding


Two bugs in the borrow checker every Rust developer should know about

Apologies in advance: this post assumes familiarity with Rust. Anyone who has done some coding in Rust may be familiar with the dreaded borrow checker, famous for obstructing the compilation of otherwise “perfectly reasonable code.” In many cases, the borrow checker is right: you’re writing your code wrong, and there is another, clearer way to […]

  • December 17, 2013