]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-const.rs
Rollup merge of #106962 - compiler-errors:use-sugg-span, r=oli-obk
[rust.git] / tests / 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 }