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