]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-negative.rs
Auto merge of #106090 - WaffleLapkin:dereffffffffff, r=Nilstrieb
[rust.git] / tests / ui / consts / const-negative.rs
1 // run-pass
2 // Issue #358
3 #![allow(non_upper_case_globals)]
4
5 static toplevel_mod: isize = -1;
6
7 pub fn main() {
8     assert_eq!(toplevel_mod, -1);
9 }