Sign in
fuchsia
/
third_party
/
rust
/
57e8fc56852e7728d7160242bf13c3ab6e066bd8
/
.
/
src
/
test
/
ui
/
issues
/
issue-54062.rs
blob: 60a9b00d5d4bd25fae0b79dfc5d020a9daea58d9 [
file
] [
log
] [
blame
]
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 `Mutex` is private
//~| ERROR: no method named `unwrap` found
}