mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
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
@ -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…
Reference in New Issue
Block a user