]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0776.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0776.md
1 `#[cmse_nonsecure_entry]` functions require a C ABI
2
3 Erroneous code example:
4
5 ```compile_fail,E0776
6 #![feature(cmse_nonsecure_entry)]
7
8 #[no_mangle]
9 #[cmse_nonsecure_entry]
10 pub fn entry_function(input: Vec<u32>) {}
11 ```
12
13 To fix this error, declare your entry function with a C ABI, using `extern "C"`.