// RUN: %target-swift-frontend -emit-ir %s -disable-availability-checking protocol Cache { associatedtype Object associatedtype Snapshot: Sequence func entries(_ body: (Snapshot) -> Void) -> AsyncStream } func readFromCacheImpl(cache: any Cache) async { let updateStream = cache.entries { _ in } for await _ in updateStream {} }