mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00

Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
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(|| {});
|
|
}
|