It's not possible to return Vec<T>
if T only implements IntoWasmAbi
#3824
Labels
Vec<T>
if T only implements IntoWasmAbi
#3824
Describe the Bug
It is not possible to return
Vec<T: IntoWasmAbi>
, but it is allowed to return justT
.Steps to Reproduce
Given this code
But, if we wrap the
Vec
in something that itself implementsIntoWasmAbi
everything works:Expected Behavior
I expect it to be possible to return
Vec<T>
whereT: IntoWasmAbi
.Actual Behavior
It isn't possible to return
Vec<T>
whereT: IntoWasmAbi
, but it is perfectly possible to return theVec
when a wrapper type is added.Additional Context
See also
Vec
s of and implementTryFrom<JsValue>
for strings and exported Rust types #3554tsify
has been inactive for about 9 months. There is a maintained fork here, but unfortunately no issue tracker (yet?).The text was updated successfully, but these errors were encountered: