Avatar
Avatar
ジュニア
@swift-5.9.2 struct MySet<Element: Hashable> {} struct MyArray<Element> { func set() -> MySet<Element> { .init() } }
exit status: 1 with <stdin>:5:19: error: type 'Element' does not conform to protocol 'Hashable' func set() -> MySet<Element> { ^