rust/tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs
2023-01-11 09:32:08 +00:00

13 lines
255 B
Rust

// Regression test for issue #91370.
extern {
//~^ `extern` blocks define existing foreign functions
fn f() {
//~^ incorrect function inside `extern` block
//~| cannot have a body
impl Copy for u8 {}
}
}
fn main() {}