error[E0616]: field `inner` of struct `Mutex` is private --> $DIR/issue-54062.rs:10:24 | LL | let _ = test.comps.inner.try_lock(); | ^^^^^ private field error: aborting due to previous error For more information about this error, try `rustc --explain E0616`.