Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
did_you_mean
/
issue-38147-2.rs
blob: e43ebf9d261421ae55e68dbc10ad8d5a37af177c [
file
] [
log
] [
blame
]
struct
Bar
<
'
a
>
{
s
:
&
'
a
String
}
impl
<
'a> Bar<'
a
>
{
fn
f
(&
mut
self
)
{
self
.
s
.
push
(
'x'
);
//~^ ERROR cannot borrow borrowed content `*self.s` of immutable binding as mutable
}
}
fn
main
()
{}