]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/rvalue-static-promotion.rs
5 const NONE_CELL_STRING
: Option
<Cell
<String
>> = None
;
9 const FOO
: Option
<Box
<T
>> = None
;
13 let _
: &'
static u32 = &42;
14 let _
: &'
static Option
<u32> = &None
;
16 // We should be able to peek at consts and see they're None.
17 let _
: &'
static Option
<Cell
<String
>> = &NONE_CELL_STRING
;
18 let _
: &'
static Option
<Box
<()>> = &Foo
::FOO
;