error[E0433]: failed to resolve: use of undeclared type or module `io`
--> prog.rs:1:54
|
1 | pub fn read_file(path : &str) -> Result<Vec<String>, io::Error> {
| ^^ use of undeclared type or module `io`
error[E0433]: failed to resolve: use of undeclared type or module `fs`
--> prog.rs:2:20
|
2 | let contents = fs::read_to_string(path)
| ^^ use of undeclared type or module `fs`
error[E0433]: failed to resolve: use of undeclared type or module `io`
--> prog.rs:18:60
|
18 | pub fn read_markdown_file(path : &str) -> Result<Markdown, io::Error> {
| ^^ use of undeclared type or module `io`
error[E0412]: cannot find type `Markdown` in this scope
--> prog.rs:18:50
|
18 | pub fn read_markdown_file(path : &str) -> Result<Markdown, io::Error> {
| ^^^^^^^^ not found in this scope
error[E0601]: `main` function not found in crate `prog`
|
= note: consider adding a `main` function to `prog.rs`
error: aborting due to 5 previous errors
Some errors occurred: E0412, E0433, E0601.
For more information about an error, try `rustc --explain E0412`.