Strangeness in pattern matching mutable references in nested structs

Isn't the first example a mutable borrow of an Option, while the second is a mutable reference to a value inside an option? It kind of makes sense to me the compiler would think the first borrow was still alive.

2 Likes