找出安全下标里的 bug

来自 扩展
Swift 6.3.3 进阶 4分钟 找出 1处问题

找出这个所谓通用的安全下标为何无法用于 Collection。

swift
extension Collection {
    subscript(safe index: Int) -> Element? {
        indices.contains(index) ? self[index] : nil
    }
}
在试验场中打开
报告错误