summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/type-ascription-instead-of-path-2.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/type-ascription-instead-of-path-2.fixed')
-rw-r--r--tests/ui/suggestions/type-ascription-instead-of-path-2.fixed6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/suggestions/type-ascription-instead-of-path-2.fixed b/tests/ui/suggestions/type-ascription-instead-of-path-2.fixed
new file mode 100644
index 000000000..787fcc120
--- /dev/null
+++ b/tests/ui/suggestions/type-ascription-instead-of-path-2.fixed
@@ -0,0 +1,6 @@
+// run-rustfix
+fn main() -> Result<(), ()> {
+ let _ = vec![Ok(2)].into_iter().collect::<Result<Vec<_>,_>>()?;
+ //~^ ERROR expected `::`, found `(`
+ Ok(())
+}