mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
another attempt at fixing the examples in the error codes .md
This commit is contained in:
parent
c7ff46c971
commit
1a7960603f
@ -14,6 +14,7 @@ Erroneous code example:
|
||||
```compile_fail,E0798
|
||||
#![feature(abi_c_cmse_nonsecure_call)]
|
||||
|
||||
#[no_mangle]
|
||||
pub fn test(
|
||||
f: extern "C-cmse-nonsecure-call" fn(u32, u32, u32, u32, u32) -> u32,
|
||||
) -> u32 {
|
||||
@ -28,6 +29,7 @@ room left for the final `f32` argument
|
||||
```compile_fail,E0798
|
||||
#![feature(abi_c_cmse_nonsecure_call)]
|
||||
|
||||
#[no_mangle]
|
||||
pub fn test(
|
||||
f: extern "C-cmse-nonsecure-call" fn(u32, u64, f32) -> u32,
|
||||
) -> u32 {
|
||||
|
Loading…
Reference in New Issue
Block a user