]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-52742.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / nll / issue-52742.rs
1 #![feature(nll)]
2 #![feature(in_band_lifetimes)]
3
4 struct Foo<'a, 'b> {
5     x: &'a u32,
6     y: &'b u32,
7 }
8
9 struct Bar<'b> {
10     z: &'b u32
11 }
12
13 impl Foo<'_, '_> {
14     fn take_bar(&mut self, b: Bar<'_>) {
15         self.y = b.z
16         //~^ ERROR unsatisfied lifetime constraints
17     }
18 }
19
20 fn main() { }