1 // Make sure the compiler does not ICE when trying to generate the debuginfo name of a type that
2 // causes a layout error. See https://github.com/rust-lang/rust/issues/94961.
4 // compile-flags:-C debuginfo=2
6 // error-pattern: too big for the current architecture
7 // normalize-stderr-64bit "18446744073709551615" -> "SIZE"
8 // normalize-stderr-32bit "4294967295" -> "SIZE"
10 #![crate_type = "rlib"]
12 pub struct Foo<T>([T; usize::MAX]);
14 pub fn foo() -> usize {
15 std::mem::size_of::<Foo<u8>>()