about summary refs log tree commit diff
path: root/tests/ui/closures/issue-22864-1.rs
blob: 3d88a2a50b464c5470cb7a7fcb21182d69f787df (plain)
1
2
3
4
5
6
7
//@ run-pass
pub fn main() {
    struct Fun<F>(F);
    let f = Fun(|x| 3*x);
    let Fun(g) = f;
    println!("{:?}",g(4));
}