   )
   defer { mb.deallocate() }
 
-  var tb = mb.initializeMemory(as: Int.self, fromElements: 0..<c)
+  var tb = mb.initializeMemory(as: Int.self, fromContentsOf: 0..<c)
   expectEqual(tb.count, c)
   expectTrue(tb.elementsEqual(0..<c))
   var rb = tb.deinitialize()
   expectEqual(rb.baseAddress, mb.baseAddress)
   expectEqual(rb.count, mb.count)
 
-  tb = mb[...].initializeMemory(as: Int.self, fromElements: 0..<c)
+  tb = mb[...].initializeMemory(as: Int.self, fromContentsOf: 0..<c)
   expectEqual(tb.count, c)
   expectTrue(tb.elementsEqual(0..<c))
   rb = tb.deinitialize()


  var a = UnsafeMutableBufferPointer<String>.allocate(capacity: c)
  defer { a.deallocate() }
  a.initialize(fromElements: Array(repeating: ".", count: c))
  defer { a.deinitialize() }

  var i = a.withContiguousMutableStorageIfAvailable {
    $0.update(fromElements: Array(repeating: " ", count: c))
  }
  expectEqual(i, c)
  expectTrue(a.allSatisfy({ $0 == " " }))

  i = a[...].withContiguousMutableStorageIfAvailable {
    $0.update(fromElements: Array(repeating: "?", count: c))
  }
  expectEqual(i, c)
  expectTrue(a.allSatisfy({ $0 == "?" }))

}

UnsafeMutableBufferPointerSliceTests.test(
  "slice.of.UnsafeMutableRawBufferpointer.initializeMemory.fromContentsOf"
) {
  let c = 4
  let mb = UnsafeMutableRawBufferPointer.allocate(
