]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-52742.rs
Auto merge of #105121 - oli-obk:simpler-cheaper-dump_mir, r=nnethercote
[rust.git] / src / test / ui / nll / issue-52742.rs
1 struct Foo<'a, 'b> {
2     x: &'a u32,
3     y: &'b u32,
4 }
5
6 struct Bar<'b> {
7     z: &'b u32,
8 }
9
10 impl Foo<'_, '_> {
11     fn take_bar(&mut self, b: Bar<'_>) {
12         self.y = b.z
13         //~^ ERROR
14     }
15 }
16
17 fn main() {}