2016-06-01 09:30:13 -05:00
|
|
|
trait Trait {
|
|
|
|
fn bar<'a,'b:'a>(x: &'a str, y: &'b str);
|
2018-01-28 15:42:49 -06:00
|
|
|
//~^ NOTE lifetimes in impl do not match this method in trait
|
2016-06-01 09:30:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
impl Trait for Foo {
|
|
|
|
fn bar<'a,'b>(x: &'a str, y: &'b str) { //~ ERROR E0195
|
2018-01-28 15:42:49 -06:00
|
|
|
//~^ NOTE lifetimes do not match method in trait
|
2016-06-01 09:30:13 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|