//@ check-pass use std::fmt::Debug; pub struct EventStream { stream: S, } impl EventStream { fn into_stream(self) -> impl Debug { unimplemented!() } pub fn into_reader(self) -> impl Debug { ReaderStream::from(self.into_stream()) } } #[derive(Debug)] pub struct ReaderStream { stream: S, } impl From for ReaderStream { fn from(stream: S) -> Self { ReaderStream { stream } } } fn main() {}