Sign in
android
/
toolchain
/
rustc
/
3b664ca54b09788037e50e8bf4cb1881bcd6cb8d
/
.
/
src
/
test
/
ui
/
issues
/
issue-54062.rs
blob: 093d6601d4e2e6063d7267cfe1abeebff01f6c3a [
file
]
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
}