Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
suggestions
/
suggest-ret-on-async-w-late.rs
blob: 2b70cdd524ee52e66a7a1cd274d718daf127bc31 [
file
] [
log
] [
blame
]
//@ 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
)
{
true
//~^ ERROR mismatched types
}
fn
main
()
{}