diff options
| author | Folkert <folkert@folkertdev.nl> | 2024-07-16 20:36:55 +0200 |
|---|---|---|
| committer | Folkert <folkert@folkertdev.nl> | 2024-07-16 20:36:55 +0200 |
| commit | 1a7960603f60239a5b91c27b3d63e2b87eb09512 (patch) | |
| tree | f398dbecdd3f02ab7398701bce8769cfcedbf6af /compiler/rustc_error_codes/src | |
| parent | c7ff46c971ea7c17b67b2b619fd094c4df981863 (diff) | |
| download | rust-1a7960603f60239a5b91c27b3d63e2b87eb09512.tar.gz rust-1a7960603f60239a5b91c27b3d63e2b87eb09512.zip | |
another attempt at fixing the examples in the error codes .md
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0798.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0798.md b/compiler/rustc_error_codes/src/error_codes/E0798.md index f63796a67f1..012c13b96ed 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0798.md +++ b/compiler/rustc_error_codes/src/error_codes/E0798.md @@ -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 { |
