summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern/not-in-block.rs
blob: d3bcafdef7b3cbf39945288ba8d28eeb5151ec9d (plain)
1
2
3
4
5
6
#![crate_type = "lib"]

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