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
4b1a12c240
rust
/
tests
/
run-pass
/
static_memory_modification.rs
9 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
also step through promoteds, constants and statics
2016-06-02 10:05:17 -05:00
static
mut
X
:
usize
=
5
;
don't use `#[miri_run]` anymore, but execute the `main` function
2016-06-13 07:27:05 -05:00
fn
main
(
)
{
also step through promoteds, constants and statics
2016-06-02 10:05:17 -05:00
unsafe
{
X
=
6
;
assert_eq!
(
X
,
6
)
;
}
}
Reference in New Issue
Copy Permalink