Submission details
Task:Monikulmio
Sender:Jaksu
Submission time:2025-10-27 23:58:44 +0200
Language:Rust (2021)
Status:COMPILE ERROR

Compiler report

error[E0583]: file not found for module `tehtava2`
 --> input/code.rs:1:1
  |
1 | mod tehtava2;
  | ^^^^^^^^^^^^^
  |
  = help: to create the module `tehtava2`, create file "input/tehtava2.rs" or "input/tehtava2/mod.rs"
  = note: if there is a `mod tehtava2` elsewhere in the crate already, import it with `use crate::...` instead

error[E0583]: file not found for module `tehtava3`
 --> input/code.rs:2:1
  |
2 | mod tehtava3;
  | ^^^^^^^^^^^^^
  |
  = help: to create the module `tehtava3`, create file "input/tehtava3.rs" or "input/tehtava3/mod.rs"
  = note: if there is a `mod tehtava3` elsewhere in the crate already, import it with `use crate::...` instead

error[E0425]: cannot find function `tehtava2` in module `tehtava2`
 --> input/code.rs:5:15
  |
5 |     tehtava2::tehtava2();
  |               ^^^^^^^^ not found in `tehtava2`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0425, E0583.
For more information about an error, try `rustc --explain E0425...

Code

mod tehtava2;
mod tehtava3;

fn main() {
    tehtava2::tehtava2();
}