mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
11 lines
184 B
Rust
11 lines
184 B
Rust
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() {}
|