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:
parent
1e8606408d
commit
36d23713fb
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ Erroneous code example:
|
|||
```compile_fail,E0798
|
||||
#![feature(abi_c_cmse_nonsecure_call)]
|
||||
|
||||
fn test(
|
||||
pub fn test(
|
||||
f: extern "C-cmse-nonsecure-call" fn(u32, u32, u32, u32, u32) -> u32,
|
||||
) -> u32 {
|
||||
f(1, 2, 3, 4, 5)
|
||||
|
@ -28,7 +28,7 @@ room left for the final `f32` argument
|
|||
```compile_fail,E0798
|
||||
#![feature(abi_c_cmse_nonsecure_call)]
|
||||
|
||||
fn test(
|
||||
pub fn test(
|
||||
f: extern "C-cmse-nonsecure-call" fn(u32, u64, f32) -> u32,
|
||||
) -> u32 {
|
||||
f(1, 2, 3.0)
|
||||
|
|
Loading…
Add table
Reference in a new issue