Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
resolve
/
bad-env-capture.rs
blob: ccd98b6ef062d5a3b7c0b42c81ea6ad0d3bdc49a [
file
] [
log
] [
blame
] [
edit
]
//@ error-pattern: can't capture dynamic environment in a fn item
fn
foo
()
{
let
x
:
isize
;
fn
bar
()
{
log
(
debug
,
x
);
}
}
fn
main
()
{
foo
();
}