diff --git a/src/lifetime-elision.md b/src/lifetime-elision.md index dfa45ec..9e210c7 100644 --- a/src/lifetime-elision.md +++ b/src/lifetime-elision.md @@ -63,5 +63,6 @@ fn args(&mut self, args: &[T]) -> &mut Command // el fn args<'a, 'b, T: ToCStr>(&'a mut self, args: &'b [T]) -> &'a mut Command // expanded fn new(buf: &mut [u8]) -> BufWriter; // elided +fn new(buf: &mut [u8]) -> BufWriter<'_>; // elided (with `rust_2018_idioms`) fn new<'a>(buf: &'a mut [u8]) -> BufWriter<'a> // expanded ```