mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
14 lines
192 B
Rust
14 lines
192 B
Rust
//@ run-pass
|
|
// Issue #922
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
fn f2<F>(_thing: F) where F: FnOnce() { }
|
|
|
|
fn f<F>(thing: F) where F: FnOnce() {
|
|
f2(thing);
|
|
}
|
|
|
|
pub fn main() {
|
|
f(|| {});
|
|
}
|