// RUN: %target-swift-frontend -typecheck -verify %s -debug-generic-signatures -warn-redundant-requirements 2>&1 | %FileCheck %s struct C {} protocol P { associatedtype A } struct G: P {} struct Body where T.A == C { // CHECK-LABEL: .init(_:)@ // CHECK-NEXT: , U : P, U.[P]A == C> init(_: U) where T == G, U.A == T.A {} // expected-warning {{redundant same-type constraint 'T.A' == 'C'}} // expected-warning@-1 {{redundant conformance constraint 'T' : 'P'}} }