]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const_let_promote.rs
5 const X
: Option
<Cell
<i32>> = None
;
7 const Y
: Option
<Cell
<i32>> = {
12 // Ensure that binding the final value of a `const` to a variable does not affect promotion.
15 let x
: &'
static _
= &X
;
16 let y
: &'
static _
= &Y
;