]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/too_generic_eval_ice.rs
1 pub struct Foo
<A
, B
>(A
, B
);
4 const HOST_SIZE
: usize = std
::mem
::size_of
::<B
>();
6 pub fn crash() -> bool
{
7 [5; Self::HOST_SIZE
] == [6; 0]
8 //~^ ERROR constant expression depends on a generic parameter
9 //~| ERROR binary operation `==` cannot be applied to type `[{integer}; _]`