rust/tests/ui/parser/no-const-fn-in-extern-block.rs

10 lines
277 B
Rust

extern "C" {
const fn foo();
//~^ ERROR functions in `extern` blocks cannot have qualifiers
const unsafe fn bar();
//~^ ERROR functions in `extern` blocks cannot have qualifiers
//~| ERROR functions in `extern` blocks cannot have qualifiers
}
fn main() {}