]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17740.rs
Re-blessed tests.
[rust.git] / src / test / ui / issues / issue-17740.rs
1 struct Foo<'a> {
2     data: &'a[u8],
3 }
4
5 impl <'a> Foo<'a>{
6     fn bar(self: &mut Foo) {
7     //~^ mismatched method receiver
8     //~| expected type `Foo<'a>`
9     //~| found type `Foo<'_>`
10     //~| lifetime mismatch
11     //~| mismatched method receiver
12     //~| expected type `Foo<'a>`
13     //~| found type `Foo<'_>`
14     //~| lifetime mismatch
15     }
16 }
17
18 fn main() {}