rust/tests/ui/lifetimes/nested-binder-print.rs

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

11 lines
184 B
Rust
Raw Normal View History

struct TwoLt<'a, 'b>(&'a (), &'b ());
type Foo<'a> = fn(TwoLt<'_, 'a>);
fn foo() {
let y: for<'a> fn(Foo<'a>);
let x: u32 = y;
//~^ ERROR mismatched types
}
fn main() {}