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