data = Vector{UInt8}("hello, world!")
@assert(!isempty(data))
String(data)
@assert(!isempty(data)) # boom!
is this expected?
I found this issue: https://github.com/JuliaLang/julia/issues/24388, which eventually was resolved by copying data when converting string to a vector. Perhaps, when constructing a string from a vector, it should also copy?