]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0195.rs
Merge commit '8d14c94b5c0a66241b4244f1c60ac5859cec1d97' into clippyup
[rust.git] / src / test / ui / error-codes / E0195.rs
1 trait Trait {
2     fn bar<'a,'b:'a>(x: &'a str, y: &'b str);
3     //~^ NOTE lifetimes in impl do not match this method in trait
4 }
5
6 struct Foo;
7
8 impl Trait for Foo {
9     fn bar<'a,'b>(x: &'a str, y: &'b str) { //~ ERROR E0195
10     //~^ NOTE lifetimes do not match method in trait
11     }
12 }
13
14 fn main() {
15 }