Files
rust/tests/ui/duplicate/dupe-symbols-8.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
253 B
Rust
Raw Normal View History

//@ build-fail
//@ ignore-wasi wasi does different things with the `main` symbol
//
// See #67946.
#![allow(warnings)]
fn main() { //~ ERROR entry symbol `main` declared multiple times
extern "Rust" {
fn main();
}
unsafe { main(); }
}