blob: c957e0bc7e8604b557c909a5ae6faa065f3d44bf [file] [log] [blame] [edit]
use std::sync::Mutex;
struct Test {
comps: Mutex<String>,
}
fn main() {}
fn testing(test: Test) {
let _ = test.comps.inner.try_lock();
//~^ ERROR: field `inner` of struct `std::sync::Mutex` is private
}
// https://github.com/rust-lang/rust/issues/54062