Created
February 16, 2018 14:17
-
-
Save el-hoshino/708980d8a95c37593a8c71755cd481a2 to your computer and use it in GitHub Desktop.
π€ #swift #CodePiece
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol TestProtocol { | |
associatedtype Element | |
} | |
struct TestStruct<Element>: TestProtocol { | |
let element: Element | |
} | |
// error: type 'TestStruct<Element>' does not conform to protocol 'TestProtocol' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment