blob: 22abe0e3cb1581a2fb2178bb40e3f826a336c357 [file] [log] [blame] [view]
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.