diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/span/type-annotations-needed-expr.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/span/type-annotations-needed-expr.rs b/src/test/ui/span/type-annotations-needed-expr.rs new file mode 100644 index 000000000..f64dab4d7 --- /dev/null +++ b/src/test/ui/span/type-annotations-needed-expr.rs @@ -0,0 +1,3 @@ +fn main() { + let _ = (vec![1,2,3]).into_iter().sum() as f64; //~ ERROR E0282 +} |