mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
15 lines
247 B
Rust
15 lines
247 B
Rust
//@ 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() {}
|