From c82771d396be188d2f35c34ab0b03f684f69d37f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 26 Feb 2024 17:00:30 +0000 Subject: [PATCH] repro --- src/main.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index d77a080..7aac490 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 { ptr: DbPtr, data: Arc, - #[educe(Debug(ignore))] +// #[educe(Debug(ignore))] db: Arc>, } @@ -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); } -- 2.30.2