X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Finference%2Fquestion-mark-type-infer.rs;h=10560f85ed480a67d4012043c9e2f7b6504c28ea;hb=f1551bfc02845eb198a71cc5c0264bd71e336274;hp=64333a29313b349d2187441020d27c7326be8c5b;hpb=ef4ce72919d1a16ad5aed4108d5abcf4d5c2cdc8;p=rust.git diff --git a/src/test/ui/inference/question-mark-type-infer.rs b/src/test/ui/inference/question-mark-type-infer.rs index 64333a29313..10560f85ed4 100644 --- a/src/test/ui/inference/question-mark-type-infer.rs +++ b/src/test/ui/inference/question-mark-type-infer.rs @@ -7,7 +7,8 @@ fn f(x: &i32) -> Result { fn g() -> Result, ()> { 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() {