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