From dba5e877b87050fa63bf3264d2d00e2d9dca2795 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Tue, 22 Sep 2020 14:39:13 +0800 Subject: [PATCH] Add alternative extern syntax --- compiler/rustc_error_codes/src/error_codes/E0756.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/rustc_error_codes/src/error_codes/E0756.md b/compiler/rustc_error_codes/src/error_codes/E0756.md index ffdc421aab584..19d24a76afdda 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0756.md +++ b/compiler/rustc_error_codes/src/error_codes/E0756.md @@ -21,6 +21,9 @@ extern "C" { #[ffi_const] // ok! pub fn strlen(s: *const i8) -> i32; } + +#[ffi_pure] +extern "C" pub fn foo() {} // ok! # fn main() {} ```