rust/tests/ui/async-await/async-closures/pretty-async-fn-opaque.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
164 B
Rust
Raw Normal View History

2024-11-11 17:42:35 +00:00
//@ edition: 2021
fn produce() -> impl AsyncFnMut() -> &'static str {
async || ""
}
fn main() {
let x: i32 = produce();
//~^ ERROR mismatched types
}