summaryrefslogtreecommitdiffstats
path: root/tests/ui/type-inference/unbounded-type-param-in-fn.rs
blob: 1f336ed59a6ddb6ee7a87ae4fe804ebc4f4978d4 (plain)
1
2
3
4
5
6
7
fn foo<T>() -> T {
    panic!()
}

fn main() {
    foo(); //~ ERROR type annotations needed
}