2018-08-06 14:15:15 -05:00
|
|
|
struct Foo<'a, 'b> {
|
|
|
|
x: &'a u32,
|
|
|
|
y: &'b u32,
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Bar<'b> {
|
2018-12-11 15:49:40 -06:00
|
|
|
z: &'b u32,
|
2018-08-06 14:15:15 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo<'_, '_> {
|
|
|
|
fn take_bar(&mut self, b: Bar<'_>) {
|
|
|
|
self.y = b.z
|
2019-04-07 10:07:36 -05:00
|
|
|
//~^ ERROR
|
2018-08-06 14:15:15 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-11 15:49:40 -06:00
|
|
|
fn main() {}
|