Sign in
fuchsia
/
third_party
/
rust
/
867ce769b6a27c8f359eb6573f5da8b34677d055
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-block-unint.rs
blob: 1fed2d503bd357fd4d05c896ea8c7f513f1c0aab [
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
);
});
}