// RUN: not %target-swift-emit-silgen %s // https://github.com/apple/swift/issues/53633 protocol Pub { associatedtype Other associatedtype Failure: Error } class AnyPub {} extension Pub { func erase() -> AnyPub { return AnyPub() } } protocol ObsObj : Pub { associatedtype NeverPub : Pub where Self.NeverPub.Failure == Never } class Subject : Pub {} extension Pub where Other: ObsObj, Other.NeverPub: Subject { static func f() -> AnyPub { return Subject().erase() } }