Sign in
rust
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
rustdoc
/
inline_cross
/
auxiliary
/
rustdoc-trait-object-impl.rs
blob: 11d8733c40d1201d2df93e611d0919e11293829b [
file
] [
log
] [
blame
]
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
(())
}
}