]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/refer-to-other-statics-by-value.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / ui / static / refer-to-other-statics-by-value.rs
1 // run-pass
2
3 static A: usize = 42;
4 static B: usize = A;
5
6 fn main() {
7     assert_eq!(B, 42);
8 }