]> git.lizzy.rs Git - rust.git/blob - src/test/ui/duplicate/dupe-symbols-8.rs
Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06
[rust.git] / src / test / ui / duplicate / dupe-symbols-8.rs
1 // build-fail
2 // error-pattern: entry symbol `main` declared multiple times
3 //
4 // See #67946.
5
6 #![allow(warnings)]
7 fn main() {
8     extern "Rust" {
9      fn main();
10     }
11     unsafe { main(); }
12 }