2 // compile-flags: -Zvalidate-mir
4 // This test checks that bivariant parameters are handled correctly
6 #![allow(coherence_leak_check)]
15 impl Trait for for<'a> fn(&'a ()) {
18 impl Trait for fn(&'static ()) {
22 fn foo(x: Foo<for<'a> fn(&'a ()), u32>) -> Foo<fn(&'static ()), String> {