]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-const.rs
Auto merge of #64546 - weiznich:bugfix/rfc-2451-rerebalance-tests, r=nikomatsakis
[rust.git] / src / test / ui / consts / const-const.rs
1 // run-pass
2 #![allow(non_upper_case_globals)]
3
4 const a: isize = 1;
5 const b: isize = a + 2;
6
7 pub fn main() {
8     assert_eq!(b, 3);
9 }