]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/issues/issue-67830.rs
Resolve lifetimes using the regular logic for RPIT.
[rust.git] / src / test / ui / impl-trait / issues / issue-67830.rs
index 92f7e005dbf0c26ea7479e9807d62f3310a0dadf..6dc8935c77708eec3ad2cb115281dff2ab8eeac8 100644 (file)
@@ -21,6 +21,8 @@ fn call(&self, arg: A) -> Self::Output {
 fn test() -> impl for<'a> MyFn<&'a A, Output=impl Iterator + 'a> {
     //~^ ERROR higher kinded lifetime bounds on nested opaque types are not supported yet
     Wrap(|a| Some(a).into_iter())
+    //~^ ERROR implementation of `FnOnce` is not general enough
+    //~| ERROR implementation of `FnOnce` is not general enough
 }
 
 fn main() {}