blob: 3ab3d1496944effac271aec6a3f8d7336a5685e9 [file] [log] [blame] [edit]
//@ check-pass
//@ edition: 2021
use std::fmt::Debug;
trait Foo<Item> {
fn foo<'a>(&'a self) -> impl Debug
where
Item: 'a;
}
impl<Item, D: Debug + Clone> Foo<Item> for D {
fn foo<'a>(&'a self) -> impl Debug
where
Item: 'a,
{
self.clone()
}
}
fn main() {}