This website requires JavaScript.
Explore
Sign In
mirror
/
rust
mirror of
https://github.com/rust-lang/rust
Watch
1
Star
0
Fork
You've already forked rust
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
rust
/
tests
/
ui
/
consts
/
const-mut-refs
/
feature-gate-const_mut_refs.rs
9 lines
110 B
Rust
Raw
Permalink
Blame
History
fn
main
(
)
{
foo
(
&
mut
5
)
;
}
const
fn
foo
(
x
:
&
mut
i32
)
->
i32
{
//~ ERROR mutable references
*
x
+
1
}
Reference in New Issue
View Git Blame
Copy Permalink