]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-params-in-for-each.rs
Pin panic-in-drop=abort test to old pass manager
[rust.git] / src / test / ui / type-params-in-for-each.rs
1 // run-pass
2
3 #![allow(dead_code)]
4
5 // pretty-expanded FIXME #23616
6
7 struct S<T> {
8     a: T,
9     b: usize,
10 }
11
12 fn range_<F>(lo: usize, hi: usize, mut it: F) where F: FnMut(usize) {
13     let mut lo_ = lo;
14     while lo_ < hi { it(lo_); lo_ += 1; }
15 }
16
17 fn create_index<T>(_index: Vec<S<T>> , _hash_fn: extern "C" fn(T) -> usize) {
18     range_(0, 256, |_i| {
19         let _bucket: Vec<T> = Vec::new();
20     })
21 }
22
23 pub fn main() { }