Sign in
android
/
toolchain
/
rustc
/
89a0a0cd9cbd0a0138a09bd877bbc73859a8c330
/
.
/
src
/
test
/
ui
/
closures
/
closure-bounds-static-cant-capture-borrowed.rs
blob: 7327d8256685d5ee966b9daeec41195b9bb8cb1b [
file
] [
log
] [
blame
]
fn
bar
<
F
>(
blk
:
F
)
where F
:
FnOnce
()
+
'
static
{
}
fn
foo
(
x
:
&())
{
bar
(||
{
//~^ ERROR borrowed data escapes
//~| ERROR closure may outlive
let
_
=
x
;
})
}
fn
main
()
{
}