]> git.lizzy.rs Git - rust.git/blob - tests/ui/foreign/issue-91370-foreign-fn-block-impl.rs
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / 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() {}