]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/span/type-annotations-needed-expr.stderr
Use the appropriate number of type arguments in suggestion
[rust.git] / src / test / ui / span / type-annotations-needed-expr.stderr
index 1efb2720e0c555531892c49961ca65f1a1c58532..bc1c2f6164b61001079edcb66b9ef476b5dcc218 100644 (file)
@@ -5,7 +5,7 @@ LL |     let _ = (vec![1,2,3]).into_iter().sum() as f64;
    |                                       ^^^
    |                                       |
    |                                       cannot infer type for `S`
-   |                                       help: consider specifying the type argument in the method call: `sum::<_>`
+   |                                       help: consider specifying the type argument in the method call: `sum::<S>`
    |
    = note: type must be known at this point