]>
git.proxmox.com Git - rustc.git/blob - tests/ui/empty-allocation-non-null.rs
4 assert
!(Some(Box
::new(())).is_some());
6 let xs
: Box
<[()]> = Box
::<[(); 0]>::new([]);
7 assert
!(Some(xs
).is_some());
10 assert
!(Some(Box
::new(Foo
)).is_some());
12 let ys
: Box
<[Foo
]> = Box
::<[Foo
; 0]>::new([]);
13 assert
!(Some(ys
).is_some());