04454e1e FG |
1 | use std::cell::Cell; |
2 | |
3 | fn check<'a, 'b>(x: Cell<&'a ()>, y: Cell<&'b ()>) |
4 | where |
5 | 'a: 'b, |
6 | { |
7 | } |
8 | |
9 | fn test<'a, 'b>(x: Cell<&'a ()>, y: Cell<&'b ()>) { |
10 | let f = check; |
11 | //~^ ERROR lifetime may not live long enough |
12 | f(x, y); |
13 | } |
14 | |
15 | fn main() {} |