mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 19:08:20 +00:00
13 lines
159 B
Rust
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(|| {});
|
|
}
|