Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
nll
/
issue-95272.rs
blob: 958cbde37882ddfba10bd8f12bd1d083241e25c0 [
file
] [
log
] [
blame
] [
edit
]
use
std
::
cell
::
Cell
;
fn
check
<
'a, '
b
>(
x
:
Cell
<&
'a ()>, y: Cell<&'
b
()>)
where
'a: '
b
,
{
}
fn
test
<
'a, '
b
>(
x
:
Cell
<&
'a ()>, y: Cell<&'
b
()>)
{
let
f
=
check
;
//~^ ERROR lifetime may not live long enough
f
(
x
,
y
);
}
fn
main
()
{}