2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(unused_variables)]
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2014-08-19 14:39:00 -07:00
|
|
|
struct Bencher;
|
|
|
|
|
|
|
|
// ICE
|
2014-09-05 21:27:47 -07:00
|
|
|
fn warm_up<'a, F>(f: F) where F: Fn(&'a mut Bencher) {
|
2014-08-19 14:39:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// ICE trigger
|
2015-02-01 12:44:15 -05:00
|
|
|
warm_up(|b: &mut Bencher| () );
|
2014-08-19 14:39:00 -07:00
|
|
|
|
|
|
|
// OK
|
2015-02-01 12:44:15 -05:00
|
|
|
warm_up(|b| () );
|
2014-08-19 14:39:00 -07:00
|
|
|
}
|