Advertisement
MarkTiukov

Untitled

Mar 9th, 2022
898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.38 KB | None | 0 0
  1. warning: unused imports: `cell::RefCell`, `collections::VecDeque`, `rc::Rc`
  2.  --> problems/traits/mpsc/src/lib.rs:3:11
  3.   |
  4. 3 | use std::{cell::RefCell, collections::VecDeque, fmt::Debug, rc::Rc};
  5.   |           ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^              ^^^^^^
  6.   |
  7.   = note: `#[warn(unused_imports)]` on by default
  8.  
  9. error[E0392]: parameter `T` is never used
  10.   --> problems/traits/mpsc/src/lib.rs:18:19
  11.    |
  12. 18 | pub struct Sender<T> {
  13.    |                   ^ unused parameter
  14.    |
  15.    = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
  16.    = help: if you intended `T` to be a const parameter, use `const T: usize` instead
  17.  
  18. error[E0392]: parameter `T` is never used
  19.   --> problems/traits/mpsc/src/lib.rs:63:21
  20.    |
  21. 63 | pub struct Receiver<T> {
  22.    |                     ^ unused parameter
  23.    |
  24.    = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
  25.    = help: if you intended `T` to be a const parameter, use `const T: usize` instead
  26.  
  27.    Compiling mio v0.8.0
  28. For more information about this error, try `rustc --explain E0392`.
  29. warning: `mpsc` (lib) generated 1 warning
  30. error: could not compile `mpsc` due to 2 previous errors; 1 warning emitted
  31. warning: build failed, waiting for other jobs to finish...
  32. warning: `mpsc` (lib test) generated 1 warning (1 duplicate)
  33. error: build failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement