rustc/tests/ui/parser/no-const-fn-in-extern-block.rs
2025-01-11 15:57:26 +01:00

10 lines
255 B
Rust

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