summary refs log tree commit diff
path: root/src/test/ui/multiple-main-2.stderr
blob: c761e74bb8723e9a73b22ba2f724d2573d0b093d (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-2.rs:8:1
   |
LL | / fn bar() {
LL | | }
   | |_- first #[main] function
...
LL | / fn foo() { //~ 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`.