]>
Commit | Line | Data |
---|---|---|
1a4d82fc JJ |
1 | struct Foo<'a> { |
2 | data: &'a[u8], | |
223e47cc LB |
3 | } |
4 | ||
1a4d82fc JJ |
5 | impl <'a> Foo<'a>{ |
6 | fn bar(self: &mut Foo) { | |
e1599b0c | 7 | //~^ mismatched `self` parameter type |
d9bb1a4e FG |
8 | //~| expected struct `Foo<'a>` |
9 | //~| found struct `Foo<'_>` | |
85aaf69f | 10 | //~| lifetime mismatch |
e1599b0c | 11 | //~| mismatched `self` parameter type |
d9bb1a4e FG |
12 | //~| expected struct `Foo<'a>` |
13 | //~| found struct `Foo<'_>` | |
85aaf69f | 14 | //~| lifetime mismatch |
223e47cc | 15 | } |
223e47cc LB |
16 | } |
17 | ||
18 | fn main() {} |