]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-95272.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / nll / issue-95272.rs
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() {}