Files
rust/tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs
2025-04-30 10:44:24 +03:00

14 lines
371 B
Rust

// Regression test for issue #91370.
extern "C" {
//~^ NOTE `extern` blocks define existing foreign functions
fn f() {
//~^ ERROR incorrect function inside `extern` block
//~| NOTE cannot have a body
//~| NOTE for more information, visit https://doc.rust-lang.org/std/keyword.extern.html
impl Copy for u8 {}
}
}
fn main() {}