]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/issue-95272.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / nll / issue-95272.rs
CommitLineData
04454e1e
FG
1use std::cell::Cell;
2
3fn check<'a, 'b>(x: Cell<&'a ()>, y: Cell<&'b ()>)
4where
5 'a: 'b,
6{
7}
8
9fn 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
15fn main() {}