2 // #24947 ICE using a trait-associated const in an array size
12 const BAR_SIZE: usize;
16 const BAR_SIZE: usize = 12;
19 #[allow(unused_variables)]
21 let w: [u8; 12] = [0u8; <Foo as Bar>::BAR_SIZE];
22 let x: [u8; 12] = [0u8; <Foo>::BAR_SIZE];
23 let y: [u8; 8] = [0u8; <Foo>::SIZE];
24 let z: [u8; 8] = [0u8; Foo::SIZE];