Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- archishmaan@archishmaansmbp src % cargo run
- Compiling engine-worker v0.1.0 (/Users/archishmaan/Documents/CodeProjects/engine-worker)
- error[E0432]: unresolved import `error_chain`
- --> src/main.rs:6:5
- |
- 6 | use error_chain::error_chain;
- | ^^^^^^^^^^^ use of undeclared crate or module `error_chain`
- error: cannot determine resolution for the macro `error_chain`
- --> src/main.rs:11:1
- |
- 11 | error_chain! {
- | ^^^^^^^^^^^
- |
- = note: import resolution is stuck, try simplifying macro imports
- error[E0412]: cannot find type `E` in this scope
- --> src/main.rs:18:38
- |
- 18 | async fn downloadzip() -> Result<(), E> {
- | ^
- |
- ::: /Users/archishmaan/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cmp.rs:283:1
- |
- 283 | pub trait Eq: PartialEq<Self> {
- | ----------------------------- similarly named trait `Eq` defined here
- |
- help: a trait with a similar name exists
- |
- 18 | async fn downloadzip() -> Result<(), Eq> {
- | ~~
- help: you might be missing a type parameter
- |
- 18 | async fn downloadzip<E>() -> Result<(), E> {
- | +++
- warning: unused import: `stderr`
- --> src/main.rs:4:23
- |
- 4 | use std::io::{Cursor, stderr};
- | ^^^^^^
- |
- = note: `#[warn(unused_imports)]` on by default
- warning: unused import: `std::process`
- --> src/main.rs:5:5
- |
- 5 | use std::process;
- | ^^^^^^^^^^^^
- error[E0277]: the trait bound `std::io::Cursor<bytes::bytes::Bytes>: AsRef<Path>` is not satisfied
- --> src/main.rs:29:10
- |
- 29 | copy(&mut content, &mut file)?;
- | ---- ^^^^^^^^^^^^ the trait `AsRef<Path>` is not implemented for `std::io::Cursor<bytes::bytes::Bytes>`
- | |
- | required by a bound introduced by this call
- |
- = note: required for `&mut std::io::Cursor<bytes::bytes::Bytes>` to implement `AsRef<Path>`
- note: required by a bound in `std::fs::copy`
- --> /Users/archishmaan/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/fs.rs:1963:16
- |
- 1963 | pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
- | ^^^^^^^^^^^ required by this bound in `copy`
- error[E0277]: the trait bound `std::fs::File: AsRef<Path>` is not satisfied
- --> src/main.rs:29:24
- |
- 29 | copy(&mut content, &mut file)?;
- | ---- ^^^^^^^^^ the trait `AsRef<Path>` is not implemented for `std::fs::File`
- | |
- | required by a bound introduced by this call
- |
- = note: required for `&mut std::fs::File` to implement `AsRef<Path>`
- note: required by a bound in `std::fs::copy`
- --> /Users/archishmaan/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/fs.rs:1963:32
- |
- 1963 | pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> io::Result<u64> {
- | ^^^^^^^^^^^ required by this bound in `copy`
- warning: unused import: `std::io::prelude`
- --> src/main.rs:9:5
- |
- 9 | use std::io::prelude::*;
- | ^^^^^^^^^^^^^^^^
- Some errors have detailed explanations: E0277, E0412, E0432.
- For more information about an error, try `rustc --explain E0277`.
- warning: `engine-worker` (bin "engine-worker") generated 3 warnings
- error: could not compile `engine-worker` due to 5 previous errors; 3 warnings emitted
- archishmaan@archishmaansmbp src %
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement