summaryrefslogtreecommitdiffstats
path: root/tests/ui/unboxed-closures/unboxed-closures-infer-explicit-call-early.rs
blob: 9135c82b4fdf0b64c118f64e0c33306b73c8e38a (plain)
1
2
3
4
5
6
7
8
// run-pass
#![feature(fn_traits)]

fn main() {
    let mut zero = || 0;
    let x = zero.call_mut(());
    assert_eq!(x, 0);
}