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