summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0195.rs
blob: f712ee42b8c5bf49c7004ed4966033377cc2e829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
trait Trait {
    fn bar<'a,'b:'a>(x: &'a str, y: &'b str);
    //~^ NOTE lifetimes in impl do not match this method 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 method in trait
    }
}

fn main() {
}