//! Regression test for . //! //! This used to ICE in layout computation, because `::B` fails to normalize //! due to the unconstrained param on the impl. #![feature(rustc_attrs)] #![crate_type = "lib"] trait A { const B: usize; } impl A for u8 { //~ ERROR: the type parameter `C` is not constrained const B: usize = 42; } #[rustc_layout(debug)] struct S([u8; ::B]); //~ ERROR: the type has an unknown layout