This fails to compile because Vec<usize> does not impl FromMeta.
The problem is the generated code for handling a missing field, which attempts to call <Vec<usize> as FromMeta>::from_none; that doesn't exist, and so the code doesn't compile. Adding a default for the field or struct works fine, but that shouldn't be required to make this work.
Right now, the following code doesn't work:
This fails to compile because
Vec<usize>
does not implFromMeta
.The problem is the generated code for handling a missing field, which attempts to call
<Vec<usize> as FromMeta>::from_none
; that doesn't exist, and so the code doesn't compile. Adding adefault
for the field or struct works fine, but that shouldn't be required to make this work.