blob: 271eedae89a1679fb1f22819c91e384ddb2e5ba4 [file] [log] [blame]
//@ run-pass
#![allow(dead_code)]
// A basic test of using a higher-ranked trait bound.
trait FnLike<A,R> {
fn call(&self, arg: A) -> R;
}
type FnObject<'b> = dyn for<'a> FnLike<&'a isize, &'a isize> + 'b;
fn main() {
}