summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-22864-1.rs
blob: 0fad5433d6caaa871f0b7607ceccd3b92e3e9f05 (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));
}