]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-inference/unbounded-type-param-in-fn-with-assoc-type.rs
Fix #106496, suggest remove deref for type mismatch
[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 }