]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/no-const-fn-in-extern-block.rs
Rollup merge of #107354 - tspiteri:source-serif-4.005, r=GuillaumeGomez
[rust.git] / tests / ui / parser / no-const-fn-in-extern-block.rs
1 extern "C" {
2     const fn foo();
3     //~^ ERROR functions in `extern` blocks cannot have qualifiers
4     const unsafe fn bar();
5     //~^ ERROR functions in `extern` blocks cannot have qualifiers
6 }
7
8 fn main() {}