Sign in
fuchsia
/
third_party
/
rust
/
f233a4c18bec906dab0b8531f326a15fadece547
/
.
/
src
/
test
/
ui
/
closures
/
closure-bounds-static-cant-capture-borrowed.rs
blob: 4fa5d54431c60eedfc76ccf4de7239ef57513a90 [
file
] [
log
] [
blame
]
fn
bar
<
F
>(
blk
:
F
)
where F
:
FnOnce
()
+
'
static
{
}
fn
foo
(
x
:
&())
{
bar
(||
{
//~^ ERROR explicit lifetime required in the type of `x` [E0621]
let
_
=
x
;
})
}
fn
main
()
{
}