rust/tests/ui/consts/const-eval/promote-static.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
206 B
Rust
Raw Normal View History

// 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);
}