Avatar
@swift-5.1.5 struct AError: Error {} struct BError: Error {} struct List<Element> { init(_: Element, _: Element) {} } func foo<E: Error>(_ errors: List<E>) {} foo(List(AError(), BError())) (edited)