os-rust/tests/ui/attributes/issue-105594-invalid-attr-validation.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
355 B
Text
Raw Normal View History

2022-12-12 04:08:59 -08:00
error[E0739]: attribute should be applied to a function definition
2024-07-31 21:04:06 +02:00
--> $DIR/issue-105594-invalid-attr-validation.rs:6:1
2022-12-12 04:08:59 -08:00
|
LL | #[track_caller]
| ^^^^^^^^^^^^^^^
LL | static _A: () = ();
| ------------------- not a function definition
2024-07-31 21:04:06 +02:00
error: aborting due to 1 previous error
2022-12-12 04:08:59 -08:00
2024-07-31 21:04:06 +02:00
For more information about this error, try `rustc --explain E0739`.