]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/checked_add.rs
Rollup merge of #107201 - compiler-errors:confusing-async-fn-note, r=estebank
[rust.git] / tests / mir-opt / const_prop / checked_add.rs
1 // unit-test: ConstProp
2 // compile-flags: -C overflow-checks=on
3
4 // EMIT_MIR checked_add.main.ConstProp.diff
5 fn main() {
6     let x: u32 = 1 + 1;
7 }