Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
consts
/
const-mut-refs
/
feature-gate-const_mut_refs.rs
blob: 2207599815ee8056198f2a3bbdcb03ffa93bab66 [
file
] [
log
] [
blame
]
fn
main
()
{
foo
(&
mut
5
);
}
const
fn
foo
(
x
:
&
mut
i32
)
->
i32
{
//~ ERROR mutable references in const fn are unstable
*
x
+
1
}