Skip to content

Commit ddee84e

Browse files
authored
Merge pull request swiftlang#74520 from slavapestov/fix-failure-type-witness-6.0
[6.0] Concurrency: Fix default type witness for AsyncSequence.Failure
2 parents 4afc340 + 0343e39 commit ddee84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/AsyncSequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public protocol AsyncSequence<Element, Failure> {
8181

8282
/// The type of errors produced when iteration over the sequence fails.
8383
@available(SwiftStdlib 6.0, *)
84-
associatedtype Failure: Error = AsyncIterator.Failure
84+
associatedtype Failure: Error = any Error
8585
where AsyncIterator.Failure == Failure
8686

8787
/// Creates the asynchronous iterator that produces elements of this

0 commit comments

Comments
 (0)