2010-06-23 21:03:09 -07:00
|
|
|
// error-pattern: attempted dynamic environment-capture
|
|
|
|
fn foo() {
|
2011-07-27 14:19:39 +02:00
|
|
|
let x: int;
|
2011-12-22 17:53:53 -08:00
|
|
|
fn bar() { log(debug, x); }
|
2010-06-23 21:03:09 -07:00
|
|
|
}
|
2011-08-19 15:16:48 -07:00
|
|
|
fn main() { foo(); }
|