Skip to content

Commit 36d2371

Browse files
committed
make function pub in error_codes markdown file
the error is only generated for functions that are actually codegen'd
1 parent 1e86064 commit 36d2371

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+2
-2
lines changed

compiler/rustc_error_codes/src/error_codes/E0798.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Erroneous code example:
1414
```compile_fail,E0798
1515
#![feature(abi_c_cmse_nonsecure_call)]
1616
17-
fn test(
17+
pub fn test(
1818
f: extern "C-cmse-nonsecure-call" fn(u32, u32, u32, u32, u32) -> u32,
1919
) -> u32 {
2020
f(1, 2, 3, 4, 5)
@@ -28,7 +28,7 @@ room left for the final `f32` argument
2828
```compile_fail,E0798
2929
#![feature(abi_c_cmse_nonsecure_call)]
3030
31-
fn test(
31+
pub fn test(
3232
f: extern "C-cmse-nonsecure-call" fn(u32, u64, f32) -> u32,
3333
) -> u32 {
3434
f(1, 2, 3.0)

0 commit comments

Comments
 (0)