Forgot Expr<'a> and got "cannot borrow as mutable more than once" is lifetime elision really the cause?

· Users Rust Lang · Aug. 18, 2026, 10:14 a.m.
Summary
The post discusses an issue related to lifetimes in Rust programming, specifically addressing the error message "cannot borrow as mutable more than once" and its relation to lifetime elision. It suggests that the compiler should warn developers about hidden lifetimes that can lead to confusion, providing advice on how to correct mismatched lifetime syntaxes when writing Rust functions.