Closed lhallam closed 8 years ago
It's a problem with a select!
macro, I guess. I'll look into it. Thanks for reporting it! For now, you'll have to use a workaround (let rx = self.rx
). Or if you feel adventurous, you can try to improve the macro yourself. :)
Should be fixed in e15e84c5f56447a7741c06cd23ec5f58b598580f.
Here's a small test case:
On the latest rust nightly this fails to compile:
The result is the same if
run
takes&mut self
. If you addlet rx = self.rx
and use this in the select, it works as expected. I'm quite new to both mioco and rust itsself, so sorry if I've missed anything ^^