mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
15 lines
259 B
Rust
15 lines
259 B
Rust
// run-pass
|
|
#![allow(dead_code)]
|
|
// A basic test of using a higher-ranked trait bound.
|
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
trait FnLike<A,R> {
|
|
fn call(&self, arg: A) -> R;
|
|
}
|
|
|
|
type FnObject<'b> = dyn for<'a> FnLike<&'a isize, &'a isize> + 'b;
|
|
|
|
fn main() {
|
|
}
|