summary refs log tree commit diff
path: root/src/test/ui/issues/issue-17740.rs
blob: c131b895849aea4abcb120c4de365f84c3de3ac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct Foo<'a> {
    data: &'a[u8],
}

impl <'a> Foo<'a>{
    fn bar(self: &mut Foo) {
    //~^ mismatched method receiver
    //~| expected type `Foo<'a>`
    //~| found type `Foo<'_>`
    //~| lifetime mismatch
    //~| mismatched method receiver
    //~| expected type `Foo<'a>`
    //~| found type `Foo<'_>`
    //~| lifetime mismatch
    }
}

fn main() {}