Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
consts
/
const-mut-refs
/
feature-gate-const_mut_refs.rs
blob: ce9be4ac5c2af5abfb35ad62c70f058e5e96074c [
file
] [
log
] [
blame
]
fn
main
()
{
foo
(&
mut
5
);
}
const
fn
foo
(
x
:
&
mut
i32
)
->
i32
{
//~ ERROR mutable references
*
x
+
1
}