News for hackers. Stuff that matters.
Re:Try Out Rust IDE Support in Visual Studio Code by pjmlp on Saturday August 19, 2017 @03:03PM (#15055018)
It is described in the Non-lexical lifetimes RFC under "Closure desugaring".

https://github.com/nikomatsakis/nll-rfc/blob/master/0000-non...

Basically if you have a struct to represent, lets say a Window, and inside of it try to reference instance variables on a closure that would handle a button click for example, self will be moved.

There are a few workarounds, but all of them are less ergonomic than any mainstream GUI toolkit.

There are no comments on this comment yet.