Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
pattern
/
patkind-ref-binding-issue-122415.fixed
blob: 6144f062169860782f2cb087572c8aa6097a8b6c [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
#![allow(dead_code)]
fn mutate
(
_y
:
&
mut i32
)
{}
fn foo
(&(
mut x
):
&
i32
)
{
mutate
(&
mut x
);
//~^ ERROR cannot borrow `x` as mutable
}
fn main
()
{}