]> git.lizzy.rs Git - rust.git/blobdiff - tests/target/struct-field-attributes.rs
Fix static async closure qualifier order
[rust.git] / tests / target / struct-field-attributes.rs
index 8ae40ac9bdfbdad97bf50c7b32e22665cb3544fc..0f461b98bc737b035683458efb4534feb195279f 100644 (file)
@@ -35,3 +35,28 @@ 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>>,
+);
+
+// #2309
+pub struct A {
+    #[doc = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"]
+    pub foos: Vec<bool>,
+}