rust/tests/ui/higher-rank-trait-bounds/hrtb-resolve-lifetime.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
259 B
Rust
Raw Normal View History

// 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;
}
2019-05-28 14:47:21 -04:00
type FnObject<'b> = dyn for<'a> FnLike<&'a isize, &'a isize> + 'b;
fn main() {
}