rust/src/test/compile-fail/regions-in-consts.rs

7 lines
183 B
Rust
Raw Normal View History

// 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() {
}