Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
#![feature(const_extern_fn)]
const unsafe extern "C" fn foo() -> usize {
5
}
fn main() {
let a: [u8; foo()];
//~^ call to unsafe function `foo` is unsafe and requires unsafe function or block
foo();
//~^ ERROR call to unsafe function `foo` is unsafe and requires unsafe function or block