about summary refs log tree commit diff
path: root/tests/ui/duplicate/dupe-symbols-8.rs
blob: b3c635f38ed64ed44e915af66fe692cad36f26e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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(); }
}