Closed
Description
$ cargo new missing-main
$ cd missing-main
$ mkdir examples
$ touch examples/foo.rs
$ cargo build
Compiling missing-main v0.0.1 (file:///home/huon/tmp/missing-main)
error: main function not found
error: aborting due to previous error
Could not compile `missing-main`.
Running with --verbose
does at least print the last command run (pointing the finger at examples/foo,rs
), but it seems bad to have a raw error:
printed like this.