make function pub in error_codes markdown file

the error is only generated for functions that are actually codegen'd
This commit is contained in:
Folkert 2024-07-16 18:38:42 +02:00
parent 1e8606408d
commit 36d23713fb
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C

View File

@ -14,7 +14,7 @@ Erroneous code example:
```compile_fail,E0798 ```compile_fail,E0798
#![feature(abi_c_cmse_nonsecure_call)] #![feature(abi_c_cmse_nonsecure_call)]
fn test( pub fn test(
f: extern "C-cmse-nonsecure-call" fn(u32, u32, u32, u32, u32) -> u32, f: extern "C-cmse-nonsecure-call" fn(u32, u32, u32, u32, u32) -> u32,
) -> u32 { ) -> u32 {
f(1, 2, 3, 4, 5) f(1, 2, 3, 4, 5)
@ -28,7 +28,7 @@ room left for the final `f32` argument
```compile_fail,E0798 ```compile_fail,E0798
#![feature(abi_c_cmse_nonsecure_call)] #![feature(abi_c_cmse_nonsecure_call)]
fn test( pub fn test(
f: extern "C-cmse-nonsecure-call" fn(u32, u64, f32) -> u32, f: extern "C-cmse-nonsecure-call" fn(u32, u64, f32) -> u32,
) -> u32 { ) -> u32 {
f(1, 2, 3.0) f(1, 2, 3.0)