diff options
| author | Folkert <folkert@folkertdev.nl> | 2024-07-16 18:38:42 +0200 |
|---|---|---|
| committer | Folkert <folkert@folkertdev.nl> | 2024-07-16 18:38:42 +0200 |
| commit | 36d23713fb524589be409392472d78b4b3e20da6 (patch) | |
| tree | b36070bed14d9513445f9050fb84e52156e6895a /compiler/rustc_error_codes/src | |
| parent | 1e8606408d14e2509f59c0a87c02788cb112b55a (diff) | |
| download | rust-36d23713fb524589be409392472d78b4b3e20da6.tar.gz rust-36d23713fb524589be409392472d78b4b3e20da6.zip | |
make function pub in error_codes markdown file
the error is only generated for functions that are actually codegen'd
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0798.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0798.md b/compiler/rustc_error_codes/src/error_codes/E0798.md index 79ed041004e..f63796a67f1 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0798.md +++ b/compiler/rustc_error_codes/src/error_codes/E0798.md @@ -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) |
