mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
12 lines
207 B
Rust
12 lines
207 B
Rust
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
|
|
}
|