blob: a7e51dff2f3fd5dd9d28570c0ceee32c2a288762 [file] [log] [blame] [edit]
trait Trait {
fn bar<'a,'b:'a>(x: &'a str, y: &'b str);
//~^ NOTE lifetimes in impl do not match this associated function in trait
}
struct Foo;
impl Trait for Foo {
fn bar<'a,'b>(x: &'a str, y: &'b str) { //~ ERROR E0195
//~^ NOTE lifetimes do not match associated function in trait
}
}
fn main() {
}