]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-inference/unbounded-type-param-in-fn-with-assoc-type.rs
Rollup merge of #107455 - tshepang:better-name, r=wesleywiser
[rust.git] / tests / ui / type-inference / unbounded-type-param-in-fn-with-assoc-type.rs
1 #[allow(invalid_type_param_default)]
2
3 fn foo<T, U = u64>() -> (T, U) {
4     panic!()
5 }
6
7 fn main() {
8     foo(); //~ ERROR type annotations needed
9 }