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