Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRustRc and ArcSingle-choice MCQ

What does `Rc::strong_count` return immediately after the second line runs?

let a = Rc::new(5); let b = Rc::downgrade(&a); let c = a.clone(); println!("{}", Rc::strong_count(&a));