]> git.lizzy.rs Git - rust.git/blob - tests/ui/where-clauses/where-clauses-unboxed-closures.rs
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / ui / where-clauses / where-clauses-unboxed-closures.rs
1 // run-pass
2 #![allow(unused_variables)]
3 // pretty-expanded FIXME #23616
4
5 struct Bencher;
6
7 // ICE
8 fn warm_up<'a, F>(f: F) where F: Fn(&'a mut Bencher) {
9 }
10
11 fn main() {
12     // ICE trigger
13     warm_up(|b: &mut Bencher| () );
14
15     // OK
16     warm_up(|b| () );
17 }