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

Adding fix to make the test_runner functions pub #1082

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

TornaxO7
Copy link
Contributor

I always got the following error message when I tried chapter 4:

error[E0463]: can't find crate for `test`

For more information about this error, try `rustc --explain E0463`.
error: could not compile `os` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

After comparing your source code on branch post_04 with my code, I found out that the issue was function signature of test_runner: My signature was without pub. Adding the pub fixed it for me.

HINT: I don't really know if this PR is "necessary" because I couldn't find anyone else in the comments who got the same problem. Could it be that it just happened on my machine?

Greetings from Kerlsruhe by the way :)

@phil-opp phil-opp merged commit 6367e93 into phil-opp:main Dec 28, 2023
@phil-opp
Copy link
Owner

Sorry, this somehow slipped through my notifications. Thanks for submitting!

@TornaxO7 TornaxO7 deleted the post_04_pub_fn_test_runner branch December 29, 2023 09:31
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

Successfully merging this pull request may close these issues.

2 participants