rust/tests/ui/traits/new-solver/fn-trait-closure.rs
2023-01-22 12:36:58 -03:00

9 lines
142 B
Rust

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