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

6 lines
126 B
Rust

fn main() {
let foo = 42u32;
const FOO : u32 = foo;
//~^ ERROR can't capture dynamic environment
}