2017-12-19 21:53:39 -06:00
|
|
|
// error-pattern: can't capture dynamic environment in a fn item
|
2010-06-23 23:03:09 -05:00
|
|
|
fn foo() {
|
2015-01-08 04:54:35 -06:00
|
|
|
let x: isize;
|
2011-12-22 19:53:53 -06:00
|
|
|
fn bar() { log(debug, x); }
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { foo(); }
|