about summary refs log tree commit diff
path: root/src/test/rustdoc/inline_cross/auxiliary/rustdoc-trait-object-impl.rs
blob: 76913f02cfd827670194e2e8bed3eb4c9230d628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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(())
    }
}