mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 20:17:50 +00:00
8 lines
231 B
Rust
8 lines
231 B
Rust
![]() |
// missing and missing2 exist to make sure that the error only happens on a `main` declaration
|
||
|
extern "C" {
|
||
|
fn missing();
|
||
|
fn main();
|
||
|
//~^ the `main` function cannot be declared in an `extern` block
|
||
|
fn missing2();
|
||
|
}
|