]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-eval/promote-static.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / 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 }