about summary refs log tree commit diff
path: root/src/test/ui/span
diff options
context:
space:
mode:
authorOhad Ravid <ohad.rv@gmail.com>2019-12-13 19:54:18 +0100
committerOhad Ravid <ohad.rv@gmail.com>2019-12-14 11:10:21 +0100
commit8a4632dec69082301d3fe67e48d422bc9fb665be (patch)
treeccea9f4c0a3de645ed08bdaaa2e4093af3f35df1 /src/test/ui/span
parent12307b3b08edee543a78fb9d4a837fbd6d6ac0fa (diff)
Indicate origin of where type parameter for uninferred types
Diffstat (limited to 'src/test/ui/span')
-rw-r--r--src/test/ui/span/type-annotations-needed-expr.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/span/type-annotations-needed-expr.stderr b/src/test/ui/span/type-annotations-needed-expr.stderr
index 8366285edcd..2b92f9b93bf 100644
--- a/src/test/ui/span/type-annotations-needed-expr.stderr
+++ b/src/test/ui/span/type-annotations-needed-expr.stderr
@@ -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 method `sum`
    |                                       help: consider specifying the type argument in the method call: `sum::<S>`
    |
    = note: type must be known at this point