]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/issue-105594-invalid-attr-validation.stderr
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / attributes / issue-105594-invalid-attr-validation.stderr
1 error[E0739]: attribute should be applied to a function definition
2   --> $DIR/issue-105594-invalid-attr-validation.rs:9:1
3    |
4 LL | #[track_caller]
5    | ^^^^^^^^^^^^^^^
6 LL | static _A: () = ();
7    | ------------------- not a function definition
8
9 error: attribute should be applied to a function definition
10   --> $DIR/issue-105594-invalid-attr-validation.rs:12:1
11    |
12 LL | #[cmse_nonsecure_entry]
13    | ^^^^^^^^^^^^^^^^^^^^^^^
14 LL | static _B: () = ();
15    | ------------------- not a function definition
16
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
19    |
20 LL | #[cmse_nonsecure_entry]
21    | ^^^^^^^^^^^^^^^^^^^^^^^
22
23 error: aborting due to 3 previous errors
24
25 Some errors have detailed explanations: E0739, E0775.
26 For more information about an error, try `rustc --explain E0739`.