2014-05-06 16:37:32 -07:00
|
|
|
struct Foo<'a,'b> {
|
2015-01-08 21:54:35 +11:00
|
|
|
x: &'a isize,
|
|
|
|
y: &'b isize,
|
2014-05-06 16:37:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a,'b> Foo<'a,'b> {
|
2016-12-20 22:46:11 +02:00
|
|
|
fn bar(self:
|
|
|
|
Foo<'b,'a>
|
2019-09-02 18:21:58 -07:00
|
|
|
//~^ ERROR mismatched `self` parameter type
|
2019-11-13 14:16:56 -08:00
|
|
|
//~| expected struct `Foo<'a, 'b>`
|
|
|
|
//~| found struct `Foo<'b, 'a>`
|
2015-01-12 01:01:44 -05:00
|
|
|
//~| lifetime mismatch
|
2019-09-02 18:21:58 -07:00
|
|
|
//~| ERROR mismatched `self` parameter type
|
2019-11-13 14:16:56 -08:00
|
|
|
//~| expected struct `Foo<'a, 'b>`
|
|
|
|
//~| found struct `Foo<'b, 'a>`
|
2015-01-12 01:01:44 -05:00
|
|
|
//~| lifetime mismatch
|
2016-12-20 22:46:11 +02:00
|
|
|
) {}
|
2014-05-06 16:37:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|