summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-const.rs
blob: 85e4a72e86d658daab4a02972cdce36871305176 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
#![allow(non_upper_case_globals)]

const a: isize = 1;
const b: isize = a + 2;

pub fn main() {
    assert_eq!(b, 3);
}