]> git.lizzy.rs Git - rust.git/blob - tests/incremental/static_refering_to_other_static3/issue.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / incremental / static_refering_to_other_static3 / issue.rs
1 // revisions:rpass1 rpass2
2
3 #[cfg(rpass1)]
4 pub static A: u8 = 42;
5 #[cfg(rpass2)]
6 pub static A: u8 = 43;
7
8 static B: &u8 = &C.1;
9 static C: (&&u8, u8) = (&B, A);
10
11 fn main() {
12     assert_eq!(*B, A);
13     assert_eq!(**C.0, A);
14     assert_eq!(C.1, A);
15 }