// RUN: %target-typecheck-verify-swift protocol P { associatedtype A } struct J { } // expected-error@+2 {{same-type constraint 'Self' == 'J' is recursive}} // expected-error@+1 {{no type for 'Self' can satisfy both 'Self == J' and 'Self : P'}} extension P where Self == J { static func just(_: A) { } }