summary refs log tree commit diff
path: root/src/test/ui/multiple-main-3.stderr
blob: 2574f0ef6d81c3456d88a274dc00756532f73bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0137]: multiple functions with a #[main] attribute
  --> $DIR/multiple-main-3.rs:9:5
   |
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`.