about summary refs log tree commit diff
path: root/tests/ui/moves/move-nullary-fn.rs
blob: 0480d2b10454ebcb00a8c83ada1d8da747e28afd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ run-pass
// Issue #922

fn f2<F>(_thing: F) where F: FnOnce() { }

fn f<F>(thing: F) where F: FnOnce() {
    f2(thing);
}

pub fn main() {
    f(|| {});
}