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

cargo test: error[E0463]: can't find crate for test #24

Closed
BaderSZ opened this issue Sep 29, 2021 · 0 comments
Closed

cargo test: error[E0463]: can't find crate for test #24

BaderSZ opened this issue Sep 29, 2021 · 0 comments

Comments

@BaderSZ
Copy link

BaderSZ commented Sep 29, 2021

Running a cargo test --lib on the project fails with the following error
Toolchain: nightly-2021-02-01-x86_64-unknown-linux-gnu

bader@prometheus:~/Work/RWTH.ERC/eduOS-rs$ cargo test --lib
   Compiling eduos-rs v0.1.0 (/home/bader/Work/RWTH.ERC/eduOS-rs)
error[E0463]: can't find crate for `test`
   --> src/mm/freelist.rs:203:1
    |
203 | / fn add_element() {
204 | |     let mut freelist = FreeList::new();
205 | |     let entry = FreeListEntry::new(0x10000, 0x100000);
206 | |
...   |
216 | |     }
217 | | }
    | |_^ can't find crate
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: could not compile `eduos-rs`

To learn more, run the command again with --verbose.

What I've tried so far:

@BaderSZ BaderSZ closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2022
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

1 participant