summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/bad-env-capture2.rs
blob: b04569c9d72287fb365465867127ec9697952dcb (plain)
1
2
3
4
5
// error-pattern: can't capture dynamic environment in a fn item
fn foo(x: isize) {
    fn bar() { log(debug, x); }
}
fn main() { foo(2); }