rust/tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
255 B
Rust
Raw Normal View History

2022-01-03 06:23:31 +00:00
// 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() {}