rust/tests/rustdoc/inline_cross/auxiliary/rustdoc-trait-object-impl.rs
2023-01-11 09:32:08 +00:00

14 lines
211 B
Rust

use std::fmt;
pub trait Bar {}
impl<'a> Bar + 'a {
pub fn bar(&self) -> usize { 42 }
}
impl<'a> fmt::Debug for Bar + 'a {
fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result {
Ok(())
}
}