2019-07-26 17:39:58 +09:00
|
|
|
use std::sync::Mutex;
|
|
|
|
|
|
|
|
|
|
struct Test {
|
|
|
|
|
comps: Mutex<String>,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
|
|
fn testing(test: Test) {
|
2020-09-24 17:11:16 +02:00
|
|
|
let _ = test.comps.inner.try_lock();
|
2020-09-02 10:40:56 +03:00
|
|
|
//~^ ERROR: field `inner` of struct `Mutex` is private
|
2019-07-26 17:39:58 +09:00
|
|
|
}
|