summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/next-solver/fn-trait-closure.rs
blob: cd2ae1f6fb2af1ec552670cfb27aaebb10a600c3 (plain)
1
2
3
4
5
6
7
8
// compile-flags: -Znext-solver
// check-pass

fn require_fn(_: impl Fn() -> i32) {}

fn main() {
    require_fn(|| -> i32 { 1i32 });
}