]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/cross-return-site-inference.rs
selection failure: recompute applicable impls
[rust.git] / src / test / ui / impl-trait / cross-return-site-inference.rs
index d881af9ed8fe13c655fed5ecff9544c72fbb4bf1..00aed2ad95a283c642fbc39e880e130dcba53212 100644 (file)
@@ -30,16 +30,19 @@ fn baa(b: bool) -> impl std::fmt::Debug {
 
 fn muh() -> Result<(), impl std::fmt::Debug> {
     Err("whoops")?;
-    Ok(()) //~ ERROR type annotations needed
+    Ok(())
+    //~^ ERROR type annotations needed
 }
 
 fn muh2() -> Result<(), impl std::fmt::Debug> {
-    return Err(From::from("foo")); //~ ERROR type annotations needed
+    return Err(From::from("foo"));
+    //~^ ERROR type annotations needed
     Ok(())
 }
 
 fn muh3() -> Result<(), impl std::fmt::Debug> {
-    Err(From::from("foo")) //~ ERROR type annotations needed
+    Err(From::from("foo"))
+    //~^ ERROR type annotations needed
 }
 
 fn main() {}