public protocol P0 { func pp() } public extension Int : P0 { public func pp() {} } 1.pp() error: TempGround.playground:5:1: error: 'public' modifier cannot be used with extensions that declare protocol conformances public extension Int : P0 { ^~~~~~~