diff --git a/stdlib/public/Concurrency/AsyncSequence.swift b/stdlib/public/Concurrency/AsyncSequence.swift index 9cab1863746be..2584369030850 100644 --- a/stdlib/public/Concurrency/AsyncSequence.swift +++ b/stdlib/public/Concurrency/AsyncSequence.swift @@ -81,7 +81,7 @@ public protocol AsyncSequence { /// The type of errors produced when iteration over the sequence fails. @available(SwiftStdlib 6.0, *) - associatedtype Failure: Error = AsyncIterator.Failure + associatedtype Failure: Error = any Error where AsyncIterator.Failure == Failure /// Creates the asynchronous iterator that produces elements of this