3 // rust-lang/rust#68590: confusing diagnostics when reborrowing through DerefMut.
5 use std::cell::RefCell;
13 fn take_a(_: &mut A) {}
15 fn test<'a>(s: &RefCell<S<'a>>) {
16 let mut guard = s.borrow_mut();
18 let _s2 = S { a: guard.a };
23 let s = RefCell::new(S { a });