Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Gabriel-Alves-Cunha opened this issue Jul 9, 2021 · 1 comment

Comments

@Gabriel-Alves-Cunha
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants