blob: 1b02f26a678377f8551d10e526d2a62a57dca3a5 [file] [log] [blame]
// compile-flags: -Z borrowck=mir
#![allow(dead_code)]
use std::cell::Cell;
struct Foo<'a: 'b, 'b> {
x: Cell<&'a u32>,
y: Cell<&'b u32>,
}
fn bar<'a, 'b>(x: Cell<&'a u32>, y: Cell<&'b u32>) {
Foo { x, y };
//~^ ERROR unsatisfied lifetime constraints
}
fn main() {}