blob: 12e0a4263f50339987071c904bbd35a9ea6351c7 [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 () {
//~^ WARN: does not match trait method signature
&()
}
}
fn main() {}