3 ms·
> Bigger problem is value type generics/const generics How does Rust solve the ambiguities with const generics?
by cwzwarich 7y ago
> Bigger problem is value type generics/const generics
How does Rust solve the ambiguities with const generics?
- chrismorgan 7y agoThe expression must be wrapped in curly braces: Type<{ expression }>
- monocasa 7y agoThe ambiguous const generics have to be surrounded by { }: fn function<T, { ambigous const generic expression }>(arg1: T) -> T {
- unlinked_dll 7y agoI believe the current proposal (partially supported on nightly) is to require expressions in generic arguments to be enclosed in {}