blob: 7798e247df0a2c77ade50b3d0a054404ec2e2526 (
plain)
1
2
3
4
5
6
7
8
|
fn main() {
let _ = fix(|_: &dyn Fn()| {});
}
fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
move || f(fix(&f))
//~^ ERROR concrete type differs from previous defining opaque type use
}
|