// RUN: not %target-swift-frontend %s -typecheck

public protocol _UTFEncoding {
    associatedtype EncodedScalar where EncodedScalar == Int
}

public protocol UnicodeEncoding {
    associatedtype EncodedScalar: BidirectionalCollection
}

public protocol _UTFParser {
    associatedtype Encoding: UnicodeEncoding, _UTFEncoding
}

Add formerly-crashing test case for SR-4786 / rdar://problem/31955862.
Add formerly-crashing test case for SR-4786 / rdar://problem/31955862.
