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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
255 B
Rust
Raw Permalink Normal View History

2020-09-01 17:12:52 -04:00
extern "C" {
const fn foo();
2024-10-11 11:30:03 -04:00
//~^ ERROR functions in `extern` blocks cannot
const unsafe fn bar();
2024-10-11 11:30:03 -04:00
//~^ ERROR functions in `extern` blocks cannot
//~| ERROR items in `extern` blocks without an `unsafe` qualifier cannot
}
fn main() {}