]> git.proxmox.com Git - rustc.git/blame - src/test/ui/extern/extern-main-issue-86110.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / extern / extern-main-issue-86110.rs
CommitLineData
136023e0
XL
1// missing and missing2 exist to make sure that the error only happens on a `main` declaration
2extern "C" {
3 fn missing();
4 fn main();
5 //~^ the `main` function cannot be declared in an `extern` block
6 fn missing2();
7}