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?
1 Like
sveinhal
(Svein Halvor Halvorsen)
3
This think this is maybe AI-generated answer with a spam link added to the quoted content.
2 Likes