summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-20847.rs
blob: 0cd7edf89db0190ec344173611fdcaa67675d1af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
#![feature(fn_traits)]

use std::ops::Fn;

fn say(x: u32, y: u32) {
    println!("{} {}", x, y);
}

fn main() {
    Fn::call(&say, (1, 2));
}