diff options
Diffstat (limited to 'tests/ui/suggestions/suggest-ret-on-async-w-late.rs')
-rw-r--r-- | tests/ui/suggestions/suggest-ret-on-async-w-late.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/suggestions/suggest-ret-on-async-w-late.rs b/tests/ui/suggestions/suggest-ret-on-async-w-late.rs new file mode 100644 index 000000000..459b94f94 --- /dev/null +++ b/tests/ui/suggestions/suggest-ret-on-async-w-late.rs @@ -0,0 +1,11 @@ +// edition: 2021 + +// Make sure we don't ICE when suggesting a return type +// for an async fn that has late-bound vars... + +async fn ice(_: &i32) { + true + //~^ ERROR mismatched types +} + +fn main() {} |