Files
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.

15 lines
219 B
Rust
Raw Normal View History

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