2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2014-11-15 19:10:22 -05:00
|
|
|
// A basic test of using a higher-ranked trait bound.
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-11-15 19:10:22 -05:00
|
|
|
trait FnLike<A,R> {
|
|
|
|
fn call(&self, arg: A) -> R;
|
|
|
|
}
|
|
|
|
|
2019-05-28 14:47:21 -04:00
|
|
|
type FnObject<'b> = dyn for<'a> FnLike<&'a isize, &'a isize> + 'b;
|
2014-11-15 19:10:22 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|