2 ms·
I understand where you're coming from. The problem is when using multiple generic Parameters, rustc outputs something like this: `the trait 'Factory<_, _, _>'
by j-krieger 6y ago
I understand where you're coming from. The problem is when using multiple generic Parameters, rustc outputs something like this:
`the trait 'Factory<_, _, _>' is not implemented for 'fn(Json<Auth>)' -> impl std::future::Future {auth}”.
What is this error saying? Can you tell? I certainly can't
- mjburgess 6y agoI haven't programmed in Rust... but presumably it's just looking for an instance of that trait for that type? It seems the type here is a function from JSON to a Future? Given Factory means Factory, then, its saying there's no way to create an instance of that function?
- agumonkey 6y agoAre you annoyed / confused because of <_,_,_> ? It seems rust compiler team didn't write a proper error message or I cannot find meaning in this .. usually _ means 'whatever type' but <_,_,_> is useless if all types are the same whatever.