about summary refs log tree commit diff
path: root/tests/ui/unboxed-closures/existential-printing.rs
blob: f43373202091b88e86c29d6c27d2b4aac2d638d2 (plain)
1
2
3
4
5
6
7
8
// Make sure we don't ICE printing `impl AsyncFnOnce<()>`.

#![feature(unboxed_closures, fn_traits)]

fn f() -> impl FnOnce<()> { || () }

fn main() { () = f(); }
//~^ ERROR mismatched types