blob: ff3753de5a2e199faa107a2116e00837964c70ee [file] [log] [blame]
trait Foo {
fn test() -> impl Sized;
}
impl<'a, T> Foo for T {
//~^ ERROR the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates
fn test() -> &'a () {
&()
}
}
fn main() {}