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