rust/tests/ui/traits/next-solver/fn-trait-closure.rs
2024-02-16 20:02:50 +00:00

9 lines
138 B
Rust

//@ compile-flags: -Znext-solver
//@ check-pass
fn require_fn(_: impl Fn() -> i32) {}
fn main() {
require_fn(|| -> i32 { 1i32 });
}