Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
did_you_mean
/
issue-38147-3.rs
blob: 40b8e0dba26a3dfeff034ac755059689f52e1b6e [
file
] [
log
] [
blame
]
struct
Qux
<
'
a
>
{
s
:
&
'
a
String
}
impl
<
'a> Qux<'
a
>
{
fn
f
(&
self
)
{
self
.
s
.
push
(
'x'
);
//~^ ERROR cannot borrow `*self.s` as mutable, as it is behind a `&` reference
}
}
fn
main
()
{}