Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
borrowck
/
issue-93078.rs
blob: 2e608c5db3e1d160c6548ce81bad3c92a1a91494 [
file
] [
log
] [
blame
] [
edit
]
trait
Modify
{
fn
modify
(&
mut
self
)
;
}
impl
<
T
>
Modify
for
T
{
fn
modify
(&
mut
self
)
{}
}
trait
Foo
{
fn
mute
(&
mut
self
)
{
self
.
modify
();
//~ ERROR cannot borrow `self` as mutable
}
}
fn
main
()
{}