Avatar
@swift-5.0.3 func foo<T: Error>(_ t: T) { print(t) } struct E: Error {} let a: Error = E() foo(a)