Heirloom library: 20 levels predicting Rust's borrow checker, compiles or not, across 12 rules from move-after-use to dangling references. A real ownership sim.
At the Ward 05 shed every tool has one owner: the variable that holds it. Giving a tool to another variable moves it, and the old owner cannot use it any more. But not every value is like a tool. Numbers (i32, u32, usize), bool, char and shared references &T (including text in quotes, which has type &str) are Copy: giving one means copying it, and the original stays.
Move: a String keeps its text on the heap. If let b = a; only copied the pointer, two variables would free the same text twice. So Rust moves the ownership: afterwards only b owns it, and a may not be used again.
Clone is a copy made on purpose. .clone() makes a new value with the same contents (for a String, new text on the heap), and the old owner keeps the original. Rust never clones quietly: Copy is only for small types, everything else must be written.
Ownership moves into functions too. Calling f(x) with a parameter that has no & is the same as let param = x;. To only lend it, the function takes &T and the caller writes f(&x).
Borrowing with &: &x makes a reference to x without moving it. The owner keeps owning, the borrower may only look, and a borrow may not outlive its owner.
One user, or many onlookers. At any moment a value may be borrowed by many & or by one &mut, never both. That way nobody reads while someone else changes it.
And more, 20 levels in all.