Skip to content

Commit c85a3dd

Browse files
committed
add test case for issue#6571
1 parent 2d42c97 commit c85a3dd

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pub enum TestEnum<
2+
T: std::collections::HashMap<String, Vec<Box<dyn std::fmt::Debug + Send + Sync + 'static>>> + Clone + Default + PartialEq + Eq + std::fmt::Debug + serde::Serialize + serde::Deserialize<'static> + Send + Sync + 'static = std::collections::HashMap<String, Vec<Box<dyn std::fmt::Debug + Send + Sync + 'static>>>,
3+
> {
4+
Variant1(T),
5+
Variant2 { field: T },
6+
}
7+
8+
// More realistic example from real codebase
9+
pub enum ElementInit<
10+
P: wrt_foundation::MemoryProvider + Clone + Default + PartialEq + Eq = wrt_foundation::NoStdProvider<1024>,
11+
> {
12+
FuncIndices(crate::WasmVec<u32, P>),
13+
Expressions(crate::WasmVec<crate::WasmVec<u8, P>, P>),
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pub enum TestEnum<
2+
T: std::collections::HashMap<String, Vec<Box<dyn std::fmt::Debug + Send + Sync + 'static>>> + Clone + Default + PartialEq + Eq + std::fmt::Debug + serde::Serialize + serde::Deserialize<'static> + Send + Sync + 'static = std::collections::HashMap<String, Vec<Box<dyn std::fmt::Debug + Send + Sync + 'static>>>,
3+
> {
4+
Variant1(T),
5+
Variant2 { field: T },
6+
}
7+
8+
// More realistic example from real codebase
9+
pub enum ElementInit<
10+
P: wrt_foundation::MemoryProvider + Clone + Default + PartialEq + Eq = wrt_foundation::NoStdProvider<1024>,
11+
> {
12+
FuncIndices(crate::WasmVec<u32, P>),
13+
Expressions(crate::WasmVec<crate::WasmVec<u8, P>, P>),
14+
}

0 commit comments

Comments
 (0)