summaryrefslogtreecommitdiffstats
path: root/tests/run-make/issue-46239/main.rs
blob: b7df5cf4d81287528f010ae7494dd41c18253401 (plain)
1
2
3
4
5
6
7
8
fn project<T>(x: &(T,)) -> &T { &x.0 }

fn dummy() {}

fn main() {
    let f = (dummy as fn(),);
    (*project(&f))();
}