2017-12-19 19:53:39 -08:00
|
|
|
// error-pattern: can't capture dynamic environment in a fn item
|
2015-01-08 21:54:35 +11:00
|
|
|
fn foo(x: isize) {
|
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); }
|