Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
extern
/
extern-main-issue-86110.rs
blob: 007d13717040900580167550fc260de3a9b64fda [
file
] [
log
] [
blame
]
// missing and missing2 exist to make sure that the error only happens on a `main` declaration
extern
"C"
{
fn
missing
();
fn
main
();
//~^ ERROR the `main` function cannot be declared in an `extern` block
fn
missing2
();
}