lifetime elision
The rules that let you leave lifetime names out of most signatures.
Lifetime elision fills in lifetimes from three rules: each elided input gets its own lifetime; a single input lifetime is given to all outputs; with &self or &mut self, self's lifetime is given to the outputs.
Examples
fn first_word(s: &str) -> &strneeds no'a: its one input lifetime goes to the output.fn pick(a: &str, b: &str) -> &strhas two and fails with E0106.
See also