about summary refs log tree commit diff
path: root/tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs
blob: 5317531cecd2eabaf7c47e9ee9f7b51b531dbeee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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() {}