rust/src/test/auxiliary/cci_no_inline_lib.rs

10 lines
196 B
Rust
Raw Normal View History

// same as cci_iter_lib, more-or-less, but not marked inline
fn iter(v: [uint], f: fn(uint)) {
let i = 0u;
let n = vec::len(v);
while i < n {
f(v[i]);
i += 1u;
}
}