This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
3c10cf088a
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 07:45:34 -06:00
fn
main
(
)
{
foo
(
&
mut
5
)
;
}
Bless tests
2020-09-23 23:05:59 -05:00
const
fn
foo
(
x
:
&
mut
i32
)
->
i32
{
//~ ERROR mutable references
Add tests for mutable borrows in const fns
2019-11-21 07:45:34 -06:00
*
x
+
1
Bless tests
2020-09-17 12:32:07 -05:00
Add tests for mutable borrows in const fns
2019-11-21 07:45:34 -06:00
}
Reference in New Issue
Copy Permalink