]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/issue-99073.rs
Check that RPITs constrained by a recursive call in a closure are compatible
[rust.git] / src / test / ui / impl-trait / issue-99073.rs
index 1d75f6086664fd6db66f24379727b7388495ff86..7798e247df0a2c77ade50b3d0a054404ec2e2526 100644 (file)
@@ -1,8 +1,8 @@
 fn main() {
-    let _ = fix(|_: &dyn Fn()| {});
+  let _ = fix(|_: &dyn Fn()| {});
 }
 
 fn fix<F: Fn(G), G: Fn()>(f: F) -> impl Fn() {
-    move || f(fix(&f))
-    //~^ ERROR mismatched types
+  move || f(fix(&f))
+  //~^ ERROR concrete type differs from previous defining opaque type use
 }