rust/src/test/ui/multiple-main-3.stderr

15 lines
402 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0137]: multiple functions with a #[main] attribute
2018-12-25 09:56:47 -06:00
--> $DIR/multiple-main-3.rs:9:5
2018-08-08 07:28:26 -05:00
|
LL | / fn main1() {
LL | | }
| |_- first #[main] function
...
LL | / fn main2() { //~ ERROR multiple functions with a #[main] attribute
LL | | }
| |_____^ additional #[main] function
error: aborting due to previous error
For more information about this error, try `rustc --explain E0137`.