blob: 093d6601d4e2e6063d7267cfe1abeebff01f6c3a [file] [log] [blame]
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 `Mutex` is private
}