We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a module contains an unexpected closing bracket, it fails with the aforementioned, unrelated error.
STR:
cargo new foo && cd foo
src/main.rs
mod foo;
src/foo.rs
fn foo() {}}
cargo fmt
The output from cargo fmt is Error writing files: io error: Failed to find module foo in "/tmp/foo/src" None.
Error writing files: io error: Failed to find module foo in "/tmp/foo/src" None
The unexpected closing delimiter doesn't need to be at the end of the file (i.e. adding fn bar() {} doesn't make it fail with a better error).
fn bar() {}
Doing the same in main.rs without the separate file does show an appropriate error.
main.rs
The text was updated successfully, but these errors were encountered:
topecongiro
Successfully merging a pull request may close this issue.
When a module contains an unexpected closing bracket, it fails with the aforementioned, unrelated error.
STR:
cargo new foo && cd foo
.src/main.rs
, addmod foo;
.src/foo.rs
file with the following content:cargo fmt
The output from cargo fmt is
Error writing files: io error: Failed to find module foo in "/tmp/foo/src" None
.The unexpected closing delimiter doesn't need to be at the end of the file (i.e. adding
fn bar() {}
doesn't make it fail with a better error).Doing the same in
main.rs
without the separate file does show an appropriate error.The text was updated successfully, but these errors were encountered: