]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-54062.rs
Rollup merge of #107112 - eltociear:patch-19, r=albertlarsan68
[rust.git] / tests / ui / issues / issue-54062.rs
1 use std::sync::Mutex;
2
3 struct Test {
4     comps: Mutex<String>,
5 }
6
7 fn main() {}
8
9 fn testing(test: Test) {
10     let _ = test.comps.inner.try_lock();
11     //~^ ERROR: field `inner` of struct `Mutex` is private
12 }