summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/promote-static.rs
blob: d3c663c53e90593ab49081261934991de4d179c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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);
}