]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/no-const-fn-in-extern-block.rs
Account for ADT bodies and struct expressions
[rust.git] / src / test / 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() {}