about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src/error_codes/E0776.md
blob: e46d498d1c2623e33c630873f4aa7366081c6df8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#### Note: this error code is no longer emitted by the compiler.

`#[cmse_nonsecure_entry]` functions require a C ABI

Erroneous code example:

```ignore (no longer emitted)
#![feature(cmse_nonsecure_entry)]

#[no_mangle]
#[cmse_nonsecure_entry]
pub fn entry_function(input: Vec<u32>) {}
```

To fix this error, declare your entry function with a C ABI, using `extern "C"`.