rust/tests/ui/error-codes/E0195.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
299 B
Rust
Raw Normal View History

2016-06-01 09:30:13 -05:00
trait Trait {
fn bar<'a,'b:'a>(x: &'a str, y: &'b str);
//~^ 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
//~^ NOTE lifetimes do not match method in trait
2016-06-01 09:30:13 -05:00
}
}
fn main() {
}