]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/issue-99073.rs
Auto merge of #106171 - compiler-errors:consolidate-extract_callable_info, r=estebank...
[rust.git] / tests / ui / impl-trait / issue-99073.rs
1 fn main() {
2   let _ = fix(|_: &dyn Fn()| {});
3 }
4
5 fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
6   move || f(fix(&f))
7   //~^ ERROR concrete type differs from previous defining opaque type use
8 }