Closed
Description
#![crate_type = "lib"]
#![crate_type = "bin"]
fn main() {
println!("hello world");
}
error: linking with `cc` failed: exit code: 1
...
note: /usr/lib/gcc/i486-linux-gnu/4.7/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
Reproduced on linux32 and win32.
Metadata
Metadata
Assignees
Labels
No labels