]> git.lizzy.rs Git - rust.git/blob - src/test/ui/foreign/issue-91370-foreign-fn-block-impl.rs
Auto merge of #97925 - the8472:cgroupv1, r=joshtriplett
[rust.git] / src / test / ui / foreign / issue-91370-foreign-fn-block-impl.rs
1 // Regression test for issue #91370.
2
3 extern {
4     //~^ `extern` blocks define existing foreign functions
5     fn f() {
6         //~^ incorrect function inside `extern` block
7         //~| cannot have a body
8         impl Copy for u8 {}
9     }
10 }
11
12 fn main() {}