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
Plaintext
Raw Normal View History

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