summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-ret-on-async-w-late.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/suggest-ret-on-async-w-late.fixed')
-rw-r--r--tests/ui/suggestions/suggest-ret-on-async-w-late.fixed14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/suggestions/suggest-ret-on-async-w-late.fixed b/tests/ui/suggestions/suggest-ret-on-async-w-late.fixed
new file mode 100644
index 000000000..0a0838331
--- /dev/null
+++ b/tests/ui/suggestions/suggest-ret-on-async-w-late.fixed
@@ -0,0 +1,14 @@
+// edition: 2021
+// run-rustfix
+
+#![allow(unused)]
+
+// Make sure we don't ICE when suggesting a return type
+// for an async fn that has late-bound vars...
+
+async fn ice(_: &i32) -> bool {
+ true
+ //~^ ERROR mismatched types
+}
+
+fn main() {}