Add a test for #2044
This commit is contained in:
parent
530a845d2f
commit
be9b1b5332
@ -35,3 +35,12 @@ fn new_foo() -> Foo {
|
||||
bar: 0,
|
||||
}
|
||||
}
|
||||
|
||||
// #2044
|
||||
pub enum State {
|
||||
Closure(#[cfg_attr(feature = "serde_derive", serde(state_with = "::serialization::closure"))] GcPtr<ClosureData>),
|
||||
}
|
||||
|
||||
struct Fields(
|
||||
#[cfg_attr(feature = "serde_derive", serde(state_with = "::base::serialization::shared"))] Arc<Vec<InternedStr>>,
|
||||
);
|
||||
|
@ -33,3 +33,16 @@ fn new_foo() -> Foo {
|
||||
bar: 0,
|
||||
}
|
||||
}
|
||||
|
||||
// #2044
|
||||
pub enum State {
|
||||
Closure(
|
||||
#[cfg_attr(feature = "serde_derive", serde(state_with = "::serialization::closure"))]
|
||||
GcPtr<ClosureData>,
|
||||
),
|
||||
}
|
||||
|
||||
struct Fields(
|
||||
#[cfg_attr(feature = "serde_derive", serde(state_with = "::base::serialization::shared"))]
|
||||
Arc<Vec<InternedStr>>,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user