rustc/tests/ui/moves/move-nullary-fn.rs
2025-02-17 11:14:05 +01:00

13 lines
159 B
Rust

//@ 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(|| {});
}