]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/move-nullary-fn.rs
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / moves / move-nullary-fn.rs
1 // run-pass
2 // Issue #922
3 // pretty-expanded FIXME #23616
4
5 fn f2<F>(_thing: F) where F: FnOnce() { }
6
7 fn f<F>(thing: F) where F: FnOnce() {
8     f2(thing);
9 }
10
11 pub fn main() {
12     f(|| {});
13 }