]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/promote-static.rs
Rollup merge of #80733 - steffahn:prettify_pin_links, r=jyn514
[rust.git] / src / test / ui / consts / const-eval / promote-static.rs
1 // regression test for #67609.
2
3 // check-pass
4
5 static NONE: Option<String> = None;
6
7 static NONE_REF_REF: &&Option<String> = {
8     let x = &&NONE;
9     x
10 };
11
12 fn main() {
13     println!("{:?}", NONE_REF_REF);
14 }