]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/bad-env-capture.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / resolve / bad-env-capture.rs
1 // error-pattern: can't capture dynamic environment in a fn item
2 fn foo() {
3     let x: isize;
4     fn bar() { log(debug, x); }
5 }
6 fn main() { foo(); }