2014-12-22 23:20:31 -06:00
|
|
|
struct Foo<'a> {
|
|
|
|
data: &'a[u8],
|
|
|
|
}
|
|
|
|
|
|
|
|
impl <'a> Foo<'a>{
|
|
|
|
fn bar(self: &mut Foo) {
|
2019-09-02 20:21:58 -05:00
|
|
|
//~^ mismatched `self` parameter type
|
2019-11-13 16:16:56 -06:00
|
|
|
//~| expected struct `Foo<'a>`
|
|
|
|
//~| found struct `Foo<'_>`
|
2017-11-09 08:16:55 -06:00
|
|
|
//~| lifetime mismatch
|
2019-09-02 20:21:58 -05:00
|
|
|
//~| mismatched `self` parameter type
|
2019-11-13 16:16:56 -06:00
|
|
|
//~| expected struct `Foo<'a>`
|
|
|
|
//~| found struct `Foo<'_>`
|
2017-11-09 08:16:55 -06:00
|
|
|
//~| lifetime mismatch
|
2014-12-22 23:20:31 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|