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.

14 lines
262 B
Rust
Raw Normal View History

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