// Regression test for issue #80233 // Tests that we don't ICE when processing auto traits #![crate_type = "lib"] pub trait Trait1 {} pub trait Trait2 { type Type2; } pub trait Trait3 { type Type3; } impl Trait2 for Struct1 { type Type2 = Struct1; } impl Trait2 for Vec { type Type2 = Vec; } impl Trait3 for T { type Type3 = Struct1; } impl Trait3 for Vec { type Type3 = Vec; } pub struct Struct1 {} // @has issue_80233_normalize_auto_trait/struct.Question.html // @has - '//h3[@class="code-header"]' 'impl Send for Question' pub struct Question { pub ins: < as Trait3>::Type3 as Trait2>::Type2, }