W3cubDocs

/Rust

Error code E0781

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

Erroneous code example:

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

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

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

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0781.html