Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-block-unint.rs
blob: 1e7306acaee98c744e42d2eac0d56eb073cd25b3 [
file
] [
log
] [
blame
]
fn
force
<
F
>(
f
:
F
)
where F
:
FnOnce
()
{
f
();
}
fn
main
()
{
let
x
:
isize
;
force
(||
{
//~ ERROR borrow of possibly-uninitialized variable: `x`
println
!(
"{}"
,
x
);
});
}