blob: 495b7343f20341d9ce2c42661b3abb39e56ee57c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use std::sync::Mutex;
struct Test {
comps: Mutex<String>,
}
fn main() {}
fn testing(test: Test) {
let _ = test.comps.inner.lock().unwrap();
//~^ ERROR: field `inner` of struct `std::sync::Mutex` is private
//~| ERROR: no method named `unwrap` found
}
|