]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-const.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[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 }