To compile and execute the program from a different source file, such as infer.rs
, and name the resulting binary infer
, follow these modified instructions:
-
Update Project Structure: Create a new source file named
infer.rs
in thesrc
directory.touch src/infer.rs