From 8c078fde36b8b7d6757ff2bea271ecb2a85cf2eb Mon Sep 17 00:00:00 2001 From: lcnr Date: Mon, 20 Jan 2025 16:42:50 +0100 Subject: merge tests --- .../129541-recursive-struct-and-array-impl.rs | 23 ---------------------- .../solver-cycles/129541-recursive-struct.rs | 5 +++++ 2 files changed, 5 insertions(+), 23 deletions(-) delete mode 100644 tests/ui/traits/solver-cycles/129541-recursive-struct-and-array-impl.rs diff --git a/tests/ui/traits/solver-cycles/129541-recursive-struct-and-array-impl.rs b/tests/ui/traits/solver-cycles/129541-recursive-struct-and-array-impl.rs deleted file mode 100644 index defb39aae06..00000000000 --- a/tests/ui/traits/solver-cycles/129541-recursive-struct-and-array-impl.rs +++ /dev/null @@ -1,23 +0,0 @@ -// Regression test for #129541 - -//@ check-pass - -trait Bound {} -trait Normalize { - type Assoc; -} - -impl Normalize for T { - type Assoc = T; -} - -impl Normalize for [T] { - type Assoc = T; -} - -impl Bound for Hello {} -struct Hello { - a: <[Hello] as Normalize>::Assoc, -} - -fn main() {} diff --git a/tests/ui/traits/solver-cycles/129541-recursive-struct.rs b/tests/ui/traits/solver-cycles/129541-recursive-struct.rs index d4339dd54d6..4fbcbefec91 100644 --- a/tests/ui/traits/solver-cycles/129541-recursive-struct.rs +++ b/tests/ui/traits/solver-cycles/129541-recursive-struct.rs @@ -1,5 +1,6 @@ // Regression test for #129541 +//@ revisions: unique multiple //@ check-pass trait Bound {} @@ -7,6 +8,10 @@ trait Normalize { type Assoc; } +#[cfg(multiple)] +impl Normalize for T { + type Assoc = T; +} impl Normalize for [T] { type Assoc = T; } -- cgit 1.4.1-3-g733a5