Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-54062.rs
blob: 093d6601d4e2e6063d7267cfe1abeebff01f6c3a [
file
] [
log
] [
blame
] [
edit
]
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
}