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

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

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