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