summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-54062.rs
blob: 093d6601d4e2e6063d7267cfe1abeebff01f6c3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}