Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0781

The C-cmse-nonsecure-call ABI can only be used with function pointers.

Erroneous code example:

#![allow(unused)]
#![feature(abi_c_cmse_nonsecure_call)]

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

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