mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
13 lines
207 B
Rust
13 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
|
|
}
|