]> git.lizzy.rs Git - rust.git/blob - tests/ui/attributes/issue-105594-invalid-attr-validation.rs
Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikic
[rust.git] / tests / ui / attributes / issue-105594-invalid-attr-validation.rs
1 // This checks that the attribute validation ICE in issue #105594 doesn't
2 // recur.
3 //
4 // ignore-thumbv8m.base
5 #![feature(cmse_nonsecure_entry)]
6
7 fn main() {}
8
9 #[track_caller] //~ ERROR attribute should be applied to a function
10 static _A: () = ();
11
12 #[cmse_nonsecure_entry] //~ ERROR attribute should be applied to a function
13 static _B: () = (); //~| ERROR #[cmse_nonsecure_entry]` is only valid for targets