Can somebody smarter than me please tell me why rustc can't infer the type of `http://div.events ` in this code? Not sure if I'm being an idiot or if I found a compiler bug (and it's almost always the former). https://play.rust-lang.org/?version=stable&mode=debug&edition=2015&gist=a2206278bcc36846ab8c3eac60f82ac2 …
https://play.rust-lang.org/?version=stable&mode=debug&edition=2015&gist=5cd447be0569f03d070cacba1e15e2de … - This typechecks but not sure there's an obvious way to do it the way you wanted
-
-
Yeah, the div declaration can't hard code the type variable, because in my use case it's generated by a macro. See my latest addendum to the thread.
-
I'm stuck there too - probably a bug in my understanding of unification - nice puzzle!
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.