Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
typeck
/
issue-67971.rs
blob: 8bf725cb5ee38129377237df1aafdaf074432f19 [
file
] [
log
] [
blame
]
struct
S
{}
fn
foo
(
ctx
:
&
mut
S
)
->
String
{
//~ ERROR mismatched types
// Don't suggest to remove semicolon as it won't fix anything
ctx
.
sleep
=
0
;
//~^ ERROR no field `sleep` on type `&mut S`
}
fn
main
()
{}