     var index = c.startIndex
     if resiliencyChecks.subscriptOnOutOfBoundsIndicesBehavior == .trap {
       expectCrashLater()
-      index = index.advanced(by: numericCast(-outOfBoundsSubscriptOffset))
+      index = c.advance(index, numericCast(-outOfBoundsSubscriptOffset))
       _blackHole(c[index])
     } else {
       expectFailure {
-        index = index.advanced(by: numericCast(-outOfBoundsSubscriptOffset))
+        index = c.advance(index, numericCast(-outOfBoundsSubscriptOffset))
         _blackHole(c[index])
       }
     }

    let index = c.startIndex
    if resiliencyChecks.creatingOutOfBoundsIndicesBehavior == .trap {
      expectCrashLater()
      _blackHole(index.advanced(by: numericCast(-outOfBoundsIndexOffset)))
    } else {
      expectFailure {
        _blackHole(index.advanced(by: numericCast(-outOfBoundsIndexOffset)))
      }
    }
  }

    let survivingIndices =
      Array(
        slice.startIndex ..<
        slice.advance(slice.endIndex, by: numericCast(-test.numberToRemove))
      )
    let removedElement = slice.popLast()!
    expectEqual(
