Skip to content

Instantly share code, notes, and snippets.

@zzeroo
Created May 14, 2020 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzeroo/bef544fd14867bf9d599a09378d943f4 to your computer and use it in GitHub Desktop.
Save zzeroo/bef544fd14867bf9d599a09378d943f4 to your computer and use it in GitHub Desktop.
futures_channel::mpsc::Sender<UiEvent>`, which does not implement the `Copy` trait
--> src/main.rs:60:41
|
29 | ui_event_sender: Sender<UiEvent>,
| --------------- move occurs because `ui_event_sender` has type `futures_channel::mpsc::Sender<UiEvent>`, which does not implement the `Copy` trait
...
49 | refresh_button.connect_clicked(move |_| {
| -------- value moved into closure here
50 | ui_event_sender
| --------------- variable moved due to use in closure
...
60 | refresh_button2.connect_clicked(move |_| {
| ^^^^^^^^ value used here after move
61 | ui_event_sender
| --------------- use occurs due to use in closure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment