This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
14e59bb317
rust
/
tests
/
ui
/
consts
/
const-mut-refs
/
feature-gate-const_mut_refs.rs
9 lines
110 B
Rust
Raw
Normal View
History
Unescape
Escape
Add tests for mutable borrows in const fns
2019-11-21 08:45:34 -05:00
fn
main
(
)
{
foo
(
&
mut
5
)
;
}
Bless tests
2020-09-23 21:05:59 -07:00
const
fn
foo
(
x
:
&
mut
i32
)
->
i32
{
//~ ERROR mutable references
Add tests for mutable borrows in const fns
2019-11-21 08:45:34 -05:00
*
x
+
1
Bless tests
2020-09-17 10:32:07 -07:00
Add tests for mutable borrows in const fns
2019-11-21 08:45:34 -05:00
}
Copy permalink