// Regression test for issue #80233 // Tests that we don't ICE when processing auto traits // https://github.com/rust-lang/rust/issues/80233 #![crate_type = "lib"] #![crate_name = "foo"] 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 foo/struct.Question.html //@ has - '//h3[@class="code-header"]' 'impl Send for Question' pub struct Question { pub ins: < as Trait3>::Type3 as Trait2>::Type2, }