rust/src/test/ui/issues/issue-3521-2.rs
2018-12-25 21:08:33 -07:00

9 lines
138 B
Rust

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