diff options
Diffstat (limited to 'src/test/ui/extern/not-in-block.rs')
-rw-r--r-- | src/test/ui/extern/not-in-block.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/extern/not-in-block.rs b/src/test/ui/extern/not-in-block.rs new file mode 100644 index 000000000..d3bcafdef --- /dev/null +++ b/src/test/ui/extern/not-in-block.rs @@ -0,0 +1,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 |