Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
4486c24db3ca1c698b34ea08bee15194774b53df
/
.
/
tests
/
ui
/
resolve
/
bad-env-capture2.rs
blob: 84d1832be6074a6e73ee1aff9e9c5a7ddac770c5 [
file
] [
log
] [
blame
]
//@ error-pattern: can't capture dynamic environment in a fn item
fn
foo
(
x
:
isize
)
{
fn
bar
()
{
log
(
debug
,
x
);
}
}
fn
main
()
{
foo
(
2
);
}