Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
14 lines
228 B
Rust
14 lines
228 B
Rust
//@ 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() {
|
|
}
|