2011-05-13 11:57:58 +02:00
|
|
|
// error-pattern: attempted dynamic environment-capture
|
2012-01-13 11:48:55 +01:00
|
|
|
fn foo(x: int) {
|
2011-05-13 11:57:58 +02:00
|
|
|
fn mth() {
|
2011-12-22 17:53:53 -08:00
|
|
|
fn bar() { log(debug, x); }
|
2011-05-13 11:57:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-08-19 15:16:48 -07:00
|
|
|
fn main() { foo(2); }
|