The borrow checker refers to a compile time analysis of the ownership concept used by the Rust programming language. This tag should be used for related issues and errors.

Many new users to experience something we like to call ‘fighting with the borrow checker’, where the Rust compiler refuses to compile a program that the author thinks is valid. There are currently no other programming languages which have an equivalent concept.

The Rust book presents Rust’s ownership concept in three sections:

The borrow checker refers to the compile time validation of these concepts.