Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
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
()
{}