# unsafeRawBufferPointer in Swift 5

**URL:** <https://forums.swift.org/t/unsaferawbufferpointer-in-swift-5/22165>\
**Category:** Using Swift\
**Created:** [March 26, 2019, 5:55pm UTC](https://forums.swift.org/t/unsaferawbufferpointer-in-swift-5/22165 "2019-03-26T17:55:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jrose](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jrose/32/408_2.png) [@jrose](https://forums.swift.org/u/jrose)\
**Post date:** [March 26, 2019, 6:02pm UTC](https://forums.swift.org/t/unsaferawbufferpointer-in-swift-5/22165/4 "2019-03-26T18:02:39Z")

</div>

Hm. :-( I guess it must be a bad diagnostic. Try adding a dummy `print()` to your closure to turn it into a multi-statement closure; that'll tell the compiler to type-check each statement on its own and possibly produce more useful diagnostics.

---

_[View the full topic](https://forums.swift.org/t/unsaferawbufferpointer-in-swift-5/22165)._
