Advertisement
Guest User

Untitled

a guest
Dec 9th, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. Compiling icy_term v0.3.1 (/home/ryan/Development/icy_term)
  2. warning: crate-level attribute should be in the root module
  3. --> src/ui/main_window.rs:1:36
  4. |
  5. 1 | #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
  6. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  7. |
  8. = note: `#[warn(unused_attributes)]` on by default
  9.  
  10. error[E0004]: non-exhaustive patterns: `CallbackAction::Beep` not covered
  11. --> src/ui/main_window.rs:247:15
  12. |
  13. 247 | match result {
  14. | ^^^^^^ pattern `CallbackAction::Beep` not covered
  15. |
  16. note: `CallbackAction` defined here
  17. --> /home/ryan/.cargo/git/checkouts/icy_engine-85605a82eca5e29d/6547f64/src/parser/mod.rs:67:5
  18. |
  19. 65 | pub enum CallbackAction {
  20. | -----------------------
  21. 66 | None,
  22. 67 | Beep,
  23. | ^^^^ not covered
  24. = note: the matched value is of type `CallbackAction`
  25. help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
  26. |
  27. 255 ~ icy_engine::CallbackAction::PlayMusic(_music) => { /* play_music(music)*/ }
  28. 256 + CallbackAction::Beep => todo!()
  29. |
  30.  
  31. error[E0004]: non-exhaustive patterns: `CallbackAction::Beep` not covered
  32. --> src/ui/main_window.rs:415:27
  33. |
  34. 415 | match result {
  35. | ^^^^^^ pattern `CallbackAction::Beep` not covered
  36. |
  37. note: `CallbackAction` defined here
  38. --> /home/ryan/.cargo/git/checkouts/icy_engine-85605a82eca5e29d/6547f64/src/parser/mod.rs:67:5
  39. |
  40. 65 | pub enum CallbackAction {
  41. | -----------------------
  42. 66 | None,
  43. 67 | Beep,
  44. | ^^^^ not covered
  45. = note: the matched value is of type `CallbackAction`
  46. help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
  47. |
  48. 420 ~ icy_engine::CallbackAction::PlayMusic(_music) => { /* play_music(music)*/ }
  49. 421 + CallbackAction::Beep => todo!()
  50. |
  51.  
  52. For more information about this error, try `rustc --explain E0004`.
  53. warning: `icy_term` (bin "icy_term") generated 1 warning
  54. error: could not compile `icy_term` due to 2 previous errors; 1 warning emitted
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement