You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[derive(rlp_derive::RlpEncodable)]structDoubleVec{data:Vec<Vec<u8>>,}// Just to note that this also fails.#[derive(rlp_derive::RlpEncodableWrapper)]structDoubleVec2{data:Vec<Vec<u8>>,}
Expected outcome
This compiles
Actual result
error[E0107]: missing generics for struct `Vec`
--> src/scrubbed.rs:Line:Column
|
64 | data: Vec<Vec<u8>>,
| ^^^ expected at least 1 generic argument
|
note: struct defined here, with at least 1 generic parameter: `T`
--> /Users/sross/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/vec/mod.rs:398:12
|
398 | pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
| ^^^ -
help: add missing generic argument
|
64 | data: Vec<Vec<T><u8>>,
| ~~~~~~
Additionally, the assumption in the derive code about Vec only having one type parameter is false (the allocator API adds a second type param A)
The text was updated successfully, but these errors were encountered:
skylerqpq
changed the title
[rlp-derive] encode for Double Vec has type errors
[rlp-derive] encode for Vec<Vec<T>> has type errors
Nov 30, 2021
repro example
Expected outcome
This compiles
Actual result
Additionally, the assumption in the derive code about
Vec
only having one type parameter is false (the allocator API adds a second type paramA
)The text was updated successfully, but these errors were encountered: