Closed
Description
I tried this code:
pub fn split(&mut self) -> (ReadHalf<'_>, WriteHalf<'_>) { ... }
I expected to see this happen: the documentation to show the explicit elided lifetime
Instead, this happened: the lifetime disappeared (https://docs.rs/tokio/0.2.22/tokio/net/struct.TcpStream.html#method.split)
If anything, to go with Rust 2018 idioms it seems like rustdoc should be adding this explicit elided lifetime if it was left implicit.
Meta
rustc 1.47.0-nightly (8ad7bc3f4 2020-07-21)
docsrs 0.6.0 (c9e59af 2020-07-19)