chiark / gitweb /
repro
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 26 Feb 2024 17:00:30 +0000 (17:00 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 26 Feb 2024 17:00:30 +0000 (17:00 +0000)
src/main.rs

index d77a080b208b5f232df399f0b4f55a68d5abff48..7aac490996d0f49d3946c7b4a2df1963c9b57b40 100644 (file)
@@ -1,4 +1,7 @@
 #![allow(unused_imports)]
+#![allow(unreachable_pub)]
+#![allow(private_bounds)]
+#![allow(unused_variables)]
 
 use educe::Educe;
 use std::fmt::{self, Debug};
@@ -15,12 +18,12 @@ impl ClientSideDb for NotDebug {}
 
 #[derive(Educe)]
 //#[educe(Clone, Debug(bound(T: Debug)))]
-#[educe(Clone(bound()), Debug)]
+#[educe(Clone, Debug)]
 pub struct Obj<T: Object, LocalDb: ClientSideDb> {
     ptr: DbPtr<T>,
     data: Arc<T>,
 
-    #[educe(Debug(ignore))]
+//    #[educe(Debug(ignore))]
     db: Arc<ClientDb<LocalDb>>,
 }
 
@@ -33,6 +36,6 @@ fn main() {
         data: Arc::new(NotDebug),
         db: Arc::new(Arc::new(NotDebug)),
     };
-    let a = a.clone();
-//    println!("{:?}", &a);
+    let a = Clone::clone(&a);
+    println!("{:?}", &a);
 }