From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- .../rustdoc/issue-80233-normalize-auto-trait.rs | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/test/rustdoc/issue-80233-normalize-auto-trait.rs (limited to 'src/test/rustdoc/issue-80233-normalize-auto-trait.rs') diff --git a/src/test/rustdoc/issue-80233-normalize-auto-trait.rs b/src/test/rustdoc/issue-80233-normalize-auto-trait.rs new file mode 100644 index 000000000..515e617b4 --- /dev/null +++ b/src/test/rustdoc/issue-80233-normalize-auto-trait.rs @@ -0,0 +1,37 @@ +// 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 in-band"]' 'impl Send for Question' +pub struct Question { + pub ins: < as Trait3>::Type3 as Trait2>::Type2, +} -- cgit v1.2.3