Files
rust/tests/ui/unboxed-closures/existential-printing.rs

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

9 lines
191 B
Rust
Raw Normal View History

// Make sure we don't ICE printing `impl AsyncFnOnce<()>`.
#![feature(unboxed_closures, fn_traits)]
fn f() -> impl FnOnce<()> { || () }
fn main() { () = f(); }
//~^ ERROR mismatched types