]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/where_clauses_in_structs.rs
fix merge conflicts
[rust.git] / src / test / ui / nll / where_clauses_in_structs.rs
1 // compile-flags: -Z borrowck=mir
2
3 #![allow(dead_code)]
4
5 use std::cell::Cell;
6
7 struct Foo<'a: 'b, 'b> {
8     x: Cell<&'a u32>,
9     y: Cell<&'b u32>,
10 }
11
12 fn bar<'a, 'b>(x: Cell<&'a u32>, y: Cell<&'b u32>) {
13     Foo { x, y };
14     //~^ ERROR lifetime may not live long enough
15 }
16
17 fn main() {}