]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0775.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0775.md
1 `#[cmse_nonsecure_entry]` is only valid for targets with the TrustZone-M
2 extension.
3
4 Erroneous code example:
5
6 ```compile_fail,E0775
7 #![feature(cmse_nonsecure_entry)]
8
9 #[cmse_nonsecure_entry]
10 pub extern "C" fn entry_function() {}
11 ```
12
13 To fix this error, compile your code for a Rust target that supports the
14 TrustZone-M extension. The current possible targets are:
15 * `thumbv8m.main-none-eabi`
16 * `thumbv8m.main-none-eabihf`
17 * `thumbv8m.base-none-eabi`