rust/tests/ui/issues/issue-20847.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
154 B
Rust
Raw Normal View History

// run-pass
2016-08-06 20:01:12 +00:00
#![feature(fn_traits)]
use std::ops::Fn;
fn say(x: u32, y: u32) {
println!("{} {}", x, y);
}
fn main() {
Fn::call(&say, (1, 2));
}