Advertisement
adfasdfadsfasdf

Untitled

Jul 4th, 2023
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 3.50 KB | None | 0 0
  1. ```
  2. archishmaan@archishmaansmbp src % cargo run
  3.    Compiling engine-worker v0.1.0 (/Users/archishmaan/Documents/CodeProjects/engine-worker)
  4. error[E0432]: unresolved import `error_chain`
  5.  --> src/main.rs:6:5
  6.   |
  7. 6 | use error_chain::error_chain;
  8.   |     ^^^^^^^^^^^ use of undeclared crate or module `error_chain`
  9.  
  10. error: cannot determine resolution for the macro `error_chain`
  11.   --> src/main.rs:11:1
  12.    |
  13. 11 | error_chain! {
  14.    | ^^^^^^^^^^^
  15.    |
  16.    = note: import resolution is stuck, try simplifying macro imports
  17.  
  18. error[E0412]: cannot find type `E` in this scope
  19.    --> src/main.rs:18:38
  20.     |
  21. 18  | async fn downloadzip() -> Result<(), E> {
  22.     |                                      ^
  23.     |
  24.    ::: /Users/archishmaan/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cmp.rs:283:1
  25.     |
  26. 283 | pub trait Eq: PartialEq<Self> {
  27.     | ----------------------------- similarly named trait `Eq` defined here
  28.     |
  29. help: a trait with a similar name exists
  30.     |
  31. 18  | async fn downloadzip() -> Result<(), Eq> {
  32.     |                                      ~~
  33. help: you might be missing a type parameter
  34.     |
  35. 18  | async fn downloadzip<E>() -> Result<(), E> {
  36.     |                     +++
  37.  
  38. warning: unused import: `stderr`
  39.  --> src/main.rs:4:23
  40.   |
  41. 4 | use std::io::{Cursor, stderr};
  42.   |                       ^^^^^^
  43.   |
  44.   = note: `#[warn(unused_imports)]` on by default
  45.  
  46. warning: unused import: `std::process`
  47.  --> src/main.rs:5:5
  48.   |
  49. 5 | use std::process;
  50.   |     ^^^^^^^^^^^^
  51.  
  52. error[E0277]: the trait bound `std::io::Cursor<bytes::bytes::Bytes>: AsRef<Path>` is not satisfied
  53.     --> src/main.rs:29:10
  54.      |
  55. 29   |     copy(&mut content, &mut file)?;
  56.      |     ---- ^^^^^^^^^^^^ the trait `AsRef<Path>` is not implemented for `std::io::Cursor<bytes::bytes::Bytes>`
  57.      |     |
  58.      |     required by a bound introduced by this call
  59.      |
  60.      = note: required for `&mut std::io::Cursor<bytes::bytes::Bytes>` to implement `AsRef<Path>`
  61. note: required by a bound in `std::fs::copy`
  62.     --> /Users/archishmaan/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/fs.rs:1963:16
  63.      |
  64. 1963 | pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
  65.      |                ^^^^^^^^^^^ required by this bound in `copy`
  66.  
  67. error[E0277]: the trait bound `std::fs::File: AsRef<Path>` is not satisfied
  68.     --> src/main.rs:29:24
  69.      |
  70. 29   |     copy(&mut content, &mut file)?;
  71.      |     ----               ^^^^^^^^^ the trait `AsRef<Path>` is not implemented for `std::fs::File`
  72.      |     |
  73.      |     required by a bound introduced by this call
  74.      |
  75.      = note: required for `&mut std::fs::File` to implement `AsRef<Path>`
  76. note: required by a bound in `std::fs::copy`
  77.     --> /Users/archishmaan/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/fs.rs:1963:32
  78.      |
  79. 1963 | pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
  80.      |                                ^^^^^^^^^^^ required by this bound in `copy`
  81.  
  82. warning: unused import: `std::io::prelude`
  83.  --> src/main.rs:9:5
  84.   |
  85. 9 | use std::io::prelude::*;
  86.   |     ^^^^^^^^^^^^^^^^
  87.  
  88. Some errors have detailed explanations: E0277, E0412, E0432.
  89. For more information about an error, try `rustc --explain E0277`.
  90. warning: `engine-worker` (bin "engine-worker") generated 3 warnings
  91. error: could not compile `engine-worker` due to 5 previous errors; 3 warnings emitted
  92. archishmaan@archishmaansmbp src %
  93.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement