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
/
static
/
refer-to-other-statics-by-value.rs
9 lines
94 B
Rust
Raw
Normal View
History
Unescape
Escape
tests: Add missing run-pass annotations
2019-07-27 00:54:25 +03:00
// run-pass
Added tests fo referring to statics by value in other statics.
2018-06-04 18:38:59 +01:00
static
A
:
usize
=
42
;
static
B
:
usize
=
A
;
fn
main
(
)
{
assert_eq!
(
B
,
42
)
;
}
Copy permalink