2022-07-16 20:08:04 +00:00
|
|
|
fn main() {
|
2022-07-09 07:11:03 +00:00
|
|
|
let _ = fix(|_: &dyn Fn()| {});
|
2022-07-16 20:08:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
|
2022-07-09 07:11:03 +00:00
|
|
|
move || f(fix(&f))
|
|
|
|
//~^ ERROR concrete type differs from previous defining opaque type use
|
2022-07-16 20:08:04 +00:00
|
|
|
}
|