rust/tests/ui/consts/const-eval/promote-static.rs
2024-02-16 20:02:50 +00:00

15 lines
207 B
Rust

// regression test for #67609.
//@ check-pass
static NONE: Option<String> = None;
static NONE_REF_REF: &&Option<String> = {
let x = &&NONE;
x
};
fn main() {
println!("{:?}", NONE_REF_REF);
}