]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/bad-env-capture2.rs
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / bad-env-capture2.rs
1 // error-pattern: can't capture dynamic environment in a fn item
2 fn foo(x: isize) {
3     fn bar() { log(debug, x); }
4 }
5 fn main() { foo(2); }