aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/bad-env-capture.rs
blob: 8e30ac4407d65d285500c2e7ad261fa5d9d7f534 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// xfail-stage0
// error-pattern: attempted dynamic environment-capture
fn foo() {
  let int x;
  fn bar() {
    log x;
  }
}
fn main() {
  foo();
}