1 // rust-lang/rust#60431: This is a scenario where to determine the size of
2 // `&Ref<Obstack>`, we need to know the concrete type of the last field in
3 // `Ref<Obstack>` (i.e. its "struct tail"), and determining that concrete type
4 // requires normalizing `Obstack::Dyn`.
6 // The old "struct tail" computation did not perform such normalization, and so
7 // the compiler would ICE when trying to figure out if `Ref<Obstack>` is a
8 // dynamically-sized type (DST).
22 pub struct Ref<A: Arena> {
29 impl Arena for Obstack {
34 assert_eq!(mem::size_of::<&Ref<Obstack>>(), mem::size_of::<&[()]>());