rust/src/test/compile-fail/bad-env-capture2.rs
Brian Anderson e5e2811bc6 test: Un-xfail some compile-fail tests
Changed a few error patterns to match rustc's errors where it seemed
reasonable.
2011-05-23 23:13:18 -04:00

9 lines
125 B
Rust

// error-pattern: attempted dynamic environment-capture
fn foo(int x) {
fn bar() {
log x;
}
}
fn main() {
foo(2);
}