we cannot do this:
extension BSONBinaryEncodable
where Self:RandomAccessCollection, Element:_Trivial
{
}
// error: layout constraints are only allowed inside '_specialize' attributes
but we are allowed to do this:
extension BSONBinaryEncodable
where Self:RandomAccessCollection, Element:AnyObject
{
}
isn’t AnyObject a layout constraint?