Svetlitski / fcp

A significantly faster alternative to the classic Unix cp(1) command, copying large files and directories in a fraction of the time.
BSD 3-Clause "New" or "Revised" License
734 stars 17 forks source link

Compile error: "use of unstable library feature 'array_from_ref' " #13

Closed Gabriel-Alves-Cunha closed 2 years ago

Gabriel-Alves-Cunha commented 2 years ago

Hi, when I typed cargo install fcp the following error was given:

error[E0658]: use of unstable library feature 'array_from_ref'
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/fcp-0.2.0/src/lib.rs:190:61
    |
190 |         (Ok(metadata), _) if metadata.is_dir() => copy_into(array::from_ref(source), dest),
    |                                                             ^^^^^^^^^^^^^^^
    |
    = note: see issue #77101 <https://github.com/rust-lang/rust/issues/77101> for more information

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `fcp`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `fcp v0.2.0`, intermediate artifacts can be found at `/tmp/cargo-installoQO1VQ`

Caused by:
  build failed

So what should I do to get it to compile? Also, maybe the answer should be put on the readme page to help others :)

Svetlitski commented 2 years ago

This is a duplicate of #12, see my response there. I'll update the README to mention the minimum necessary Rust version.