about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src/error_codes/E0781.md
blob: 22abe0e3cb1581a2fb2178bb40e3f826a336c357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
The `cmse-nonsecure-call` ABI can only be used with function pointers.

Erroneous code example:

```compile_fail,E0781
#![feature(abi_cmse_nonsecure_call)]

pub extern "cmse-nonsecure-call" fn test() {}
```

The `cmse-nonsecure-call` ABI should be used by casting function pointers to
specific addresses.