]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/span/type-annotations-needed-expr.stderr
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / span / type-annotations-needed-expr.stderr
index 8366285edcda8d31c14c99072e922b497713f459..35d994e194f3f9ec4c3f119767ca98f866cbb318 100644 (file)
@@ -4,7 +4,7 @@ error[E0282]: type annotations needed
 LL |     let _ = (vec![1,2,3]).into_iter().sum() as f64;
    |                                       ^^^
    |                                       |
-   |                                       cannot infer type for type parameter `S`
+   |                                       cannot infer type for type parameter `S` declared on the associated function `sum`
    |                                       help: consider specifying the type argument in the method call: `sum::<S>`
    |
    = note: type must be known at this point