]>
git.proxmox.com Git - rustc.git/blob - tests/mir-opt/lower_slice_len.rs
1 // ignore-wasm32 compiled with panic=abort by default
2 // unit-test: LowerSliceLenCalls
4 // EMIT_MIR lower_slice_len.bound.LowerSliceLenCalls.diff
5 pub fn bound(index
: usize, slice
: &[u8]) -> u8 {
6 if index
< slice
.len() {
14 let _
= bound(1, &[1, 2, 3]);