1 error[E0739]: attribute should be applied to a function definition
2 --> $DIR/issue-105594-invalid-attr-validation.rs:9:1
6 LL | static _A: () = ();
7 | ------------------- not a function definition
9 error: attribute should be applied to a function definition
10 --> $DIR/issue-105594-invalid-attr-validation.rs:12:1
12 LL | #[cmse_nonsecure_entry]
13 | ^^^^^^^^^^^^^^^^^^^^^^^
14 LL | static _B: () = ();
15 | ------------------- not a function definition
17 error[E0775]: `#[cmse_nonsecure_entry]` is only valid for targets with the TrustZone-M extension
18 --> $DIR/issue-105594-invalid-attr-validation.rs:12:1
20 LL | #[cmse_nonsecure_entry]
21 | ^^^^^^^^^^^^^^^^^^^^^^^
23 error: aborting due to 3 previous errors
25 Some errors have detailed explanations: E0739, E0775.
26 For more information about an error, try `rustc --explain E0739`.