rust/tests/ui/static/refer-to-other-statics-by-value.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
94 B
Rust
Raw Normal View History

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