]> git.lizzy.rs Git - rust.git/blob - src/test/ui/multiple-main-3.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / multiple-main-3.stderr
1 error[E0137]: multiple functions with a #[main] attribute
2   --> $DIR/multiple-main-3.rs:19:5
3    |
4 LL | / fn main1() {
5 LL | | }
6    | |_- first #[main] function
7 ...
8 LL | /     fn main2() { //~ ERROR multiple functions with a #[main] attribute
9 LL | |     }
10    | |_____^ additional #[main] function
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0137`.