about summary refs log tree commit diff
path: root/tests/ui/extern/not-in-block.rs
blob: c21616350902ea8d51951e437de1126ea7eb93f4 (plain)
1
2
3
4
5
6
7
#![crate_type = "lib"]
#![allow(missing_abi)]

extern fn none_fn(x: bool) -> i32;
//~^ ERROR free function without a body
extern "C" fn c_fn(x: bool) -> i32;
//~^ ERROR free function without a body