协议“ UnsignedInteger”只能用作通用约束

时间:2020-04-11 13:31:17

标签: swift protocols unsigned swift-protocols

我有这个示例,我想在结构中使用动态无符号整数类型。

$ kubectl auth can-i get pods --namespace=stage --as alice
yes

,但是此代码不起作用,由于编译错误而失败 协议'UnsignedInteger'只能用作一般约束,因为它具有Self或关联的类型要求

0 个答案:

没有答案