Week one with Rust. The borrow checker and I are not friends yet, but we are negotiating.
fn main() {
let s = String::from("hello");
let n = &s;
let m = &s;
println!("{n} {m}");
println!("{}", s);
}Key insight so far: immutable borrows can coexist, mutable borrows are exclusive. Once that sank in, half the compiler errors started making sense. More in part two.