2024-02-21 21:41:32 -06:00
|
|
|
trait Bar {
|
|
|
|
type Type;
|
|
|
|
}
|
|
|
|
struct Foo<'a>(&'a ());
|
|
|
|
impl<'a> Bar for Foo<'f> { //~ ERROR undeclared lifetime
|
|
|
|
type Type = u32;
|
|
|
|
}
|
|
|
|
|
2024-03-19 15:58:37 -05:00
|
|
|
fn test() //~ ERROR the trait bound `for<'a> Foo<'a>: Bar` is not satisfied
|
|
|
|
//~| ERROR the trait bound `for<'a> Foo<'a>: Bar` is not satisfied
|
2024-02-21 21:41:32 -06:00
|
|
|
where
|
|
|
|
for<'a> <Foo<'a> as Bar>::Type: Sized,
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|