Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
resolve
/
bad-env-capture.rs
blob: a0efe88e2a9ec4be428069d81da8be92f10fa741 [
file
] [
log
] [
blame
]
fn
foo
()
{
let
x
:
isize
;
fn
bar
()
{
log
(
debug
,
x
);
}
//~^ ERROR can't capture dynamic environment in a fn item
//~| ERROR cannot find value `debug` in this scope
//~| ERROR cannot find function `log` in this scope
}
fn
main
()
{
foo
();
}