Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobianco committed Sep 6, 2023
1 parent d018434 commit 31e8c33
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions tests/errors/module-not-found.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


Compiling rust-app v0.1.0 (/home/francesco/Develop/Javanile/mush/tests/fixtures/rust-app)
error[E0583]: file not found for module `notfound`
--> src/main.rs:4:1
|
4 | mod notfound;
| ^^^^^^^^^^^^^
|
= help: to create the module `notfound`, create file "src/notfound.rs" or "src/notfound/mod.rs"

For more information about this error, try `rustc --explain E0583`.
error: could not compile `rust-app` due to previous error
6 changes: 3 additions & 3 deletions tests/fixtures/rust-app/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

//mod not_exists;

//mod notfound;
mod notfound;

//mod mod1;

extern crate json;
//extern crate json;


//use package::mod1::hello;
Expand All @@ -14,6 +14,6 @@ extern crate json;

fn main() {
println!("Hello World!");
json::parse("{}").unwrap();
//json::parse("{}").unwrap();
//hello();
}

0 comments on commit 31e8c33

Please sign in to comment.