summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17740.rs
blob: 3b868555fc522a566183ffc17fb42fb59a91f92e (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 `self` parameter type
    //~| expected struct `Foo<'a>`
    //~| found struct `Foo<'_>`
    //~| lifetime mismatch
    //~| mismatched `self` parameter type
    //~| expected struct `Foo<'a>`
    //~| found struct `Foo<'_>`
    //~| lifetime mismatch
    }
}

fn main() {}