diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/parser/no-const-fn-in-extern-block.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/parser/no-const-fn-in-extern-block.rs b/src/test/ui/parser/no-const-fn-in-extern-block.rs new file mode 100644 index 000000000..1993124ed --- /dev/null +++ b/src/test/ui/parser/no-const-fn-in-extern-block.rs @@ -0,0 +1,8 @@ +extern "C" { + const fn foo(); + //~^ ERROR functions in `extern` blocks cannot have qualifiers + const unsafe fn bar(); + //~^ ERROR functions in `extern` blocks cannot have qualifiers +} + +fn main() {} |