rust/src/test/ui/refer-to-other-statics-by-value.rs
2019-07-27 18:56:16 +03:00

9 lines
94 B
Rust

// run-pass
static A: usize = 42;
static B: usize = A;
fn main() {
assert_eq!(B, 42);
}