Created
May 14, 2020 13:23
-
-
Save zzeroo/bef544fd14867bf9d599a09378d943f4 to your computer and use it in GitHub Desktop.
futures_channel::mpsc::Sender<UiEvent>`, which does not implement the `Copy` trait
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--> 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