rust/src/test/compile-fail/regions-in-consts.rs
2012-07-13 10:20:50 -07:00

7 lines
183 B
Rust

// xfail-test
const c_x: &blk/int = 22; //~ ERROR only the static region is allowed here
const c_y: &static/int = &22; //~ ERROR only the static region is allowed here
fn main() {
}