mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
17 lines
234 B
Rust
17 lines
234 B
Rust
|
// check-pass
|
||
|
|
||
|
|
||
|
trait Foo<'a> {
|
||
|
type Input;
|
||
|
}
|
||
|
|
||
|
impl<F: Fn(u32)> Foo<'_> for F {
|
||
|
type Input = u32;
|
||
|
}
|
||
|
|
||
|
fn needs_super<F: for<'a> Fn(<F as Foo<'a>>::Input) + for<'a> Foo<'a>>(_: F) {}
|
||
|
|
||
|
fn main() {
|
||
|
needs_super(|_: u32| {});
|
||
|
}
|