Avatar
Avatar
shiz
@swift-main protocol P { associatedtype T func f(_ t: T) } struct Foo<each T>: P { func f(_ t: inout (repeat each T)) {} } (edited)
swiftNightly BOT 1/26/2025 4:06 AM
exit status: 1 with <stdin>:6:8: error: type 'Foo<repeat each T>' does not conform to protocol 'P' 1 | protocol P { 2 | associatedtype T | `- note: protocol requires nested type 'T' 3 | func f(_ t: T) 4 | } 5 | 6 | struct Foo<each T>: P { | |- error: type 'Foo<repeat each T>' does not conform to protocol 'P' | `- note: add stubs for conformance 7 | func f(_ t: inout (repeat each T)) {} 8 | } (edited)