9 lines
138 B
Rust
9 lines
138 B
Rust
fn main() {
|
|
let foo = 100;
|
|
|
|
static y: isize = foo + 1;
|
|
//~^ ERROR can't capture dynamic environment
|
|
|
|
println!("{}", y);
|
|
}
|