mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 08:16:56 +00:00
9 lines
191 B
Rust
9 lines
191 B
Rust
// Make sure we don't ICE printing `impl AsyncFnOnce<()>`.
|
|
|
|
#![feature(unboxed_closures, fn_traits)]
|
|
|
|
fn f() -> impl FnOnce<()> { || () }
|
|
|
|
fn main() { () = f(); }
|
|
//~^ ERROR mismatched types
|