]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/inference/question-mark-type-infer.rs
selection failure: recompute applicable impls
[rust.git] / src / test / ui / inference / question-mark-type-infer.rs
index 64333a29313b349d2187441020d27c7326be8c5b..10560f85ed480a67d4012043c9e2f7b6504c28ea 100644 (file)
@@ -7,7 +7,8 @@ fn f(x: &i32) -> Result<i32, ()> {
 
 fn g() -> Result<Vec<i32>, ()> {
     let l = [1, 2, 3, 4];
-    l.iter().map(f).collect()? //~ ERROR type annotations needed
+    l.iter().map(f).collect()?
+    //~^ ERROR type annotations needed
 }
 
 fn main() {