From 4bfec658114da8f4baa313789238271989ed7487 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 26 Feb 2024 17:04:25 +0000 Subject: [PATCH] REPRO --- src/main.rs | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7aac490..1d8c824 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,26 +5,18 @@ use educe::Educe; use std::fmt::{self, Debug}; +use std::sync::Arc; trait Object {} -trait ClientSideDb {} - -use std::sync::Arc; -use Arc as DbPtr; -use Arc as ClientDb; impl Object for NotDebug {} -impl ClientSideDb for NotDebug {} #[derive(Educe)] -//#[educe(Clone, Debug(bound(T: Debug)))] -#[educe(Clone, Debug)] -pub struct Obj { - ptr: DbPtr, +#[educe(Clone, Debug(bound(T: Debug)))] +//#[educe(Clone, Debug)] +pub struct Obj { + #[educe(Debug(ignore))] data: Arc, - -// #[educe(Debug(ignore))] - db: Arc>, } #[derive(Clone)] @@ -32,10 +24,8 @@ struct NotDebug; fn main() { let a = Obj { - ptr: Arc::new(NotDebug), data: Arc::new(NotDebug), - db: Arc::new(Arc::new(NotDebug)), }; let a = Clone::clone(&a); - println!("{:?}", &a); +// println!("{:?}", &a); } -- 2.30.2