diff options
Diffstat (limited to 'tests/incremental/static_refering_to_other_static')
-rw-r--r-- | tests/incremental/static_refering_to_other_static/issue-49081.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/incremental/static_refering_to_other_static/issue-49081.rs b/tests/incremental/static_refering_to_other_static/issue-49081.rs new file mode 100644 index 000000000..8e3715d1d --- /dev/null +++ b/tests/incremental/static_refering_to_other_static/issue-49081.rs @@ -0,0 +1,8 @@ +// https://github.com/rust-lang/rust/issues/49081 + +// revisions:rpass1 rpass2 + +pub static A: i32 = 42; +pub static B: &i32 = &A; + +fn main() {} |