]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/supertrait-hint-cycle-3.rs
Rollup merge of #107471 - notriddle:notriddle/default-settings, r=GuillaumeGomez
[rust.git] / tests / ui / closures / supertrait-hint-cycle-3.rs
1 // check-pass
2
3
4 trait Foo<'a> {
5     type Input;
6 }
7
8 impl<F: Fn(u32)> Foo<'_> for F {
9     type Input = u32;
10 }
11
12 fn needs_super<F: for<'a> Fn(<F as Foo<'a>>::Input) + for<'a> Foo<'a>>(_: F) {}
13
14 fn main() {
15     needs_super(|_: u32| {});
16 }